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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cmazzoni
Genome_Evaluation_Pipeline
Commits
968810c3
Commit
968810c3
authored
Aug 24, 2022
by
james94
Browse files
Options
Downloads
Patches
Plain Diff
fix conda
parent
c8086739
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Show 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:
resource = yaml.safe_load(f)
### GET BASENAME FOR READS WILDCARDS ###
def getBasename4Reads(path):
base=os.path.basename(path)
return os.path.splitext(base)[0]
#
def getBasename4Reads(path):
#
base=os.path.basename(path)
#
return os.path.splitext(base)[0]
### CHECK IF INPUT IS GZIPPED ###
def gzipped_or_not(path):
...
...
@@ -41,14 +41,13 @@ def genomeSize_auto_or_not(given_size):
return given_size
def addUniqueLibraryID(library):
string2Add=library + "_1"
def to_be_smrtTrimmed(userAnswer):
if userAnswer == 'True':
string2Add="smrtTrimmed"
elif userAnswer == 'False':
string2Add="notsmrtTrimmed"
# def to_be_smrtTrimmed(userAnswer):
# if userAnswer == 'True':
# string2Add="smrtTrimmed"
# elif userAnswer == 'False':
# string2Add="notsmrtTrimmed"
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):
...
...
This diff is collapsed.
Click to expand it.
envs/AUXILIARY_PYTHON_SCRIPTS.yaml
+
1
−
0
View file @
968810c3
...
...
@@ -11,3 +11,4 @@ dependencies:
-
pandas
-
numpy
-
ghostscript
-
python=3.9.*
This diff is collapsed.
Click to expand it.
envs/UNZIP_and_QC.yaml
+
6
−
5
View file @
968810c3
channels
:
-
anaconda
-
bioconda
-
conda-forge
-
bioconda
dependencies
:
-
pigz=2.4
-
trim-galore=0.6.6
-
pandoc=2.11
-
openssl==3.0.5
-
python=3.10.5=ha86cf86_0_cpython
-
pigz=2.6
-
trim-galore=0.6.7
-
pandoc=2.11.4
-
multiqc=1.9
-
python=3.8.5
-
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:
output:
temp(os.path.join(config['Results'], "1_evaluation/{asmID}/HiC_MAPS/{asmID}.HiC.R1.fastq")),
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:
os.path.join(workflow.basedir, "envs/UNZIP_and_QC.yaml")
threads:
...
...
@@ -56,7 +56,7 @@ rule symlink_UnzippedFastq_R1_HiC:
None
shell:
"""
ln -s {input} {output}
ln -s
f
{input} {output}
"""
...
...
@@ -94,7 +94,7 @@ rule symlink_UnzippedFastq_R2_HiC:
None
shell:
"""
ln -s {input} {output}
ln -s
f
{input} {output}
"""
...
...
@@ -334,7 +334,7 @@ rule symlink_UnzippedFasta_PRI:
None
shell:
"""
ln -s {input} {output}
ln -
f
s {input} {output}
"""
################
...
...
@@ -350,7 +350,7 @@ rule unzipFasta_ALT:
log:
os.path.join(config['Results'], "1_evaluation/{asmID}/logs/pigzUnzip.ALT.{asmID}.log")
conda:
os.path.join(workflow.basedir, "envs/
pigz
.yaml")
os.path.join(workflow.basedir, "envs/
UNZIP_and_QC
.yaml")
threads:
resource['unzipFasta_ALT']['threads']
resources:
...
...
@@ -431,7 +431,7 @@ rule merqury:
os.path.join(workflow.basedir, "envs/MERYL_MERQURY.yaml")
shell:
"""
ln -s {input.merylDB_provided} {params.symlink_merylDB}
ln -
f
s {input.merylDB_provided} {params.symlink_merylDB}
cd {params.outPath}
export OMP_NUM_THREADS={threads}
(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
sign in
to comment