Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
workflows
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Cervin Guyomar
workflows
Commits
63746344
Commit
63746344
authored
5 years ago
by
mariabernard
Browse files
Options
Downloads
Patches
Plain Diff
IMAGE_vqsr : add script dir in PATH to execute filter_multi_samples_vcf.py
parent
8e5deb30
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Snakemake/IMAGE_vqsr/Snakefile
+8
-5
8 additions, 5 deletions
Snakemake/IMAGE_vqsr/Snakefile
with
8 additions
and
5 deletions
Snakemake/IMAGE_vqsr/Snakefile
+
8
−
5
View file @
63746344
##########################################################
### Import section
import yaml
import os
import os
,sys
import collections
##########################################################
### system options
...
...
@@ -35,7 +35,8 @@ for rule in rule_resources:
# add tabix and filter_multi_sample_vcf.py in PATH
tabix_dir=os.path.dirname(config['bin']['tabix'])
script_dir=os.path.abspath('script')
snakefile_path=sys.argv[sys.argv.index("-s") +1] if "-s" in sys.argv else "./Snakefile"
script_dir=os.path.join(os.path.abspath(os.path.dirname(snakefile_path)),'script')
os.environ['PATH'] = tabix_dir + os.pathsep + script_dir + os.pathsep + os.environ['PATH']
##########################################################
...
...
@@ -81,10 +82,12 @@ final_outputs.append("results/split_SNP_INDEL/VQSR_trainingSet_untrusted_uniquel
# common hard filtered SNP and INDEL
final_outputs.append("results/hard_filtering/VQSR_trainingSet_trusted_3callers_hardFiltered_variants_SNP.vcf.gz")
final_outputs.append("results/hard_filtering/VQSR_trainingSet_trusted_3callers_hardFiltered_variants_INDEL.vcf.gz")
# Final recalibrated GATK SNP and INDEL
gatk_prefix = os.path.splitext(os.path.basename(config['GATK_variants']))[0]
if gatk_prefix.endswith('vcf') :
gatk_prefix = os.path.splitext(gatk_prefix)[0]
final_outputs.append("results/VQSR/" + gatk_prefix +"_vqsr_SNP.vcf.gz")
final_outputs.append("results/VQSR/" + gatk_prefix +"_vqsr_INDEL.vcf.gz")
final_outputs.append("results/genoFilter/" + gatk_prefix +"_vqsr_SNP_genFiltered.vcf.gz")
...
...
@@ -126,6 +129,6 @@ onsuccess:
temp_list.append('results/split_SNP_INDEL/common_SNP.vcf.gz.tbi')
temp_list.append('results/split_SNP_INDEL/common_INDEL.vcf.gz.tbi')
for f in temp_list:
print(f)
os.remove(f)
#~
for f in temp_list:
#~
print(f)
#~
os.remove(f)
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