Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Genome_Evaluation_Pipeline
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cmazzoni
Genome_Evaluation_Pipeline
Commits
968810c3
Commit
968810c3
authored
2 years ago
by
james94
Browse files
Options
Downloads
Patches
Plain Diff
fix conda
parent
c8086739
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
Snakefile
+9
-10
9 additions, 10 deletions
Snakefile
envs/AUXILIARY_PYTHON_SCRIPTS.yaml
+1
-0
1 addition, 0 deletions
envs/AUXILIARY_PYTHON_SCRIPTS.yaml
envs/UNZIP_and_QC.yaml
+6
-5
6 additions, 5 deletions
envs/UNZIP_and_QC.yaml
rules/evaluate.smk
+6
-6
6 additions, 6 deletions
rules/evaluate.smk
with
22 additions
and
21 deletions
Snakefile
+
9
−
10
View file @
968810c3
...
@@ -18,9 +18,9 @@ with open(config['resources'], 'r') as f:
...
@@ -18,9 +18,9 @@ with open(config['resources'], 'r') as f:
resource = yaml.safe_load(f)
resource = yaml.safe_load(f)
### GET BASENAME FOR READS WILDCARDS ###
### GET BASENAME FOR READS WILDCARDS ###
def getBasename4Reads(path):
#
def getBasename4Reads(path):
base=os.path.basename(path)
#
base=os.path.basename(path)
return os.path.splitext(base)[0]
#
return os.path.splitext(base)[0]
### CHECK IF INPUT IS GZIPPED ###
### CHECK IF INPUT IS GZIPPED ###
def gzipped_or_not(path):
def gzipped_or_not(path):
...
@@ -41,14 +41,13 @@ def genomeSize_auto_or_not(given_size):
...
@@ -41,14 +41,13 @@ def genomeSize_auto_or_not(given_size):
return given_size
return given_size
def addUniqueLibraryID(library):
string2Add=library + "_1"
def to_be_smrtTrimmed(userAnswer):
if userAnswer == 'True':
# def to_be_smrtTrimmed(userAnswer):
string2Add="smrtTrimmed"
# if userAnswer == 'True':
elif userAnswer == 'False':
# string2Add="smrtTrimmed"
string2Add="notsmrtTrimmed"
# elif userAnswer == 'False':
# string2Add="notsmrtTrimmed"
samples = pd.read_csv(config['samplesTSV'], dtype=str, index_col=False, delim_whitespace=True, skip_blank_lines=True)
samples = pd.read_csv(config['samplesTSV'], dtype=str, index_col=False, delim_whitespace=True, skip_blank_lines=True)
if set(['sample', 'Library_R1', 'Library_R2', 'meryl_kmer_size', 'trim10X', 'trimAdapters', 'fastQC']).issubset(samples.columns):
if set(['sample', 'Library_R1', 'Library_R2', 'meryl_kmer_size', 'trim10X', 'trimAdapters', 'fastQC']).issubset(samples.columns):
...
...
This diff is collapsed.
Click to expand it.
envs/AUXILIARY_PYTHON_SCRIPTS.yaml
+
1
−
0
View file @
968810c3
...
@@ -11,3 +11,4 @@ dependencies:
...
@@ -11,3 +11,4 @@ dependencies:
-
pandas
-
pandas
-
numpy
-
numpy
-
ghostscript
-
ghostscript
-
python=3.9.*
This diff is collapsed.
Click to expand it.
envs/UNZIP_and_QC.yaml
+
6
−
5
View file @
968810c3
channels
:
channels
:
-
anaconda
-
anaconda
-
bioconda
-
conda-forge
-
conda-forge
-
bioconda
dependencies
:
dependencies
:
-
pigz=2.4
-
openssl==3.0.5
-
trim-galore=0.6.6
-
python=3.10.5=ha86cf86_0_cpython
-
pandoc=2.11
-
pigz=2.6
-
trim-galore=0.6.7
-
pandoc=2.11.4
-
multiqc=1.9
-
multiqc=1.9
-
python=3.8.5
-
trimmomatic=0.39
-
trimmomatic=0.39
This diff is collapsed.
Click to expand it.
rules/evaluate.smk
+
6
−
6
View file @
968810c3
...
@@ -31,7 +31,7 @@ rule unzipFastq_R1_HiC:
...
@@ -31,7 +31,7 @@ rule unzipFastq_R1_HiC:
output:
output:
temp(os.path.join(config['Results'], "1_evaluation/{asmID}/HiC_MAPS/{asmID}.HiC.R1.fastq")),
temp(os.path.join(config['Results'], "1_evaluation/{asmID}/HiC_MAPS/{asmID}.HiC.R1.fastq")),
log:
log:
os.path.join(config['Results'], "1_evaluation/{asmID}/logs/pigzUnzip.
.
HiC.R1.{asmID}.log")
os.path.join(config['Results'], "1_evaluation/{asmID}/logs/pigzUnzip.HiC.R1.{asmID}.log")
conda:
conda:
os.path.join(workflow.basedir, "envs/UNZIP_and_QC.yaml")
os.path.join(workflow.basedir, "envs/UNZIP_and_QC.yaml")
threads:
threads:
...
@@ -56,7 +56,7 @@ rule symlink_UnzippedFastq_R1_HiC:
...
@@ -56,7 +56,7 @@ rule symlink_UnzippedFastq_R1_HiC:
None
None
shell:
shell:
"""
"""
ln -s {input} {output}
ln -s
f
{input} {output}
"""
"""
...
@@ -94,7 +94,7 @@ rule symlink_UnzippedFastq_R2_HiC:
...
@@ -94,7 +94,7 @@ rule symlink_UnzippedFastq_R2_HiC:
None
None
shell:
shell:
"""
"""
ln -s {input} {output}
ln -s
f
{input} {output}
"""
"""
...
@@ -334,7 +334,7 @@ rule symlink_UnzippedFasta_PRI:
...
@@ -334,7 +334,7 @@ rule symlink_UnzippedFasta_PRI:
None
None
shell:
shell:
"""
"""
ln -s {input} {output}
ln -
f
s {input} {output}
"""
"""
################
################
...
@@ -350,7 +350,7 @@ rule unzipFasta_ALT:
...
@@ -350,7 +350,7 @@ rule unzipFasta_ALT:
log:
log:
os.path.join(config['Results'], "1_evaluation/{asmID}/logs/pigzUnzip.ALT.{asmID}.log")
os.path.join(config['Results'], "1_evaluation/{asmID}/logs/pigzUnzip.ALT.{asmID}.log")
conda:
conda:
os.path.join(workflow.basedir, "envs/
pigz
.yaml")
os.path.join(workflow.basedir, "envs/
UNZIP_and_QC
.yaml")
threads:
threads:
resource['unzipFasta_ALT']['threads']
resource['unzipFasta_ALT']['threads']
resources:
resources:
...
@@ -431,7 +431,7 @@ rule merqury:
...
@@ -431,7 +431,7 @@ rule merqury:
os.path.join(workflow.basedir, "envs/MERYL_MERQURY.yaml")
os.path.join(workflow.basedir, "envs/MERYL_MERQURY.yaml")
shell:
shell:
"""
"""
ln -s {input.merylDB_provided} {params.symlink_merylDB}
ln -
f
s {input.merylDB_provided} {params.symlink_merylDB}
cd {params.outPath}
cd {params.outPath}
export OMP_NUM_THREADS={threads}
export OMP_NUM_THREADS={threads}
(merqury.sh {params.symlink_merylDB} {input.assemblyPRI} {input.assemblyALT} {params.outFile}) &> {log}
(merqury.sh {params.symlink_merylDB} {input.assemblyPRI} {input.assemblyALT} {params.outFile}) &> {log}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment