Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ONT_pilot_gitlab
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Contributor analytics
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
ESB
ONT_pilot_gitlab
Commits
2ab9da0b
Commit
2ab9da0b
authored
4 years ago
by
Valentina Galata
Browse files
Options
Downloads
Patches
Plain Diff
made FAA temp in rgi input rules; other minor changes (issue
#29
)
parent
5a7350e8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!69
Add PlasFlow and RGI
,
!67
WIP: Checkpoint snakefile
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
2019_GDB/rules/ANALYSIS_RULES
+6
-4
6 additions, 4 deletions
2019_GDB/rules/ANALYSIS_RULES
with
6 additions
and
4 deletions
2019_GDB/rules/ANALYSIS_RULES
+
6
−
4
View file @
2ab9da0b
...
...
@@ -233,6 +233,7 @@ rule plasflow:
# RGI #
#######
# RGI input: proteins
# NOTE: remove stop codon symbol "*"
# NOTE: one rule per assembly to have a workaround for the issue with file paths
# should be resolved properly later
rule rgi_input_flye:
...
...
@@ -247,7 +248,7 @@ rule rgi_input_metaspades_hybrid:
input:
os.path.abspath(os.path.join(RESULTS_DIR, "annotation/proteins/metaspades_hybrid/lr_no_barcode-sr_ONT3_MG_xx_Rashi_S11/contigs.faa"))
output:
os.path.join(RESULTS_DIR, "analysis/rgi/metaspades_hybrid.faa")
temp(
os.path.join(RESULTS_DIR, "analysis/rgi/metaspades_hybrid.faa")
)
shell:
"sed 's/\*$//' {input} > {output}"
...
...
@@ -255,7 +256,7 @@ rule rgi_input_metaspades:
input:
os.path.abspath(os.path.join(RESULTS_DIR, "annotation/proteins/metaspades/ONT3_MG_xx_Rashi_S11/final.contigs.faa"))
output:
os.path.join(RESULTS_DIR, "analysis/rgi/metaspades.faa")
temp(
os.path.join(RESULTS_DIR, "analysis/rgi/metaspades.faa")
)
shell:
"sed 's/\*$//' {input} > {output}"
...
...
@@ -263,7 +264,7 @@ rule rgi_input_megahit:
input:
os.path.abspath(os.path.join(RESULTS_DIR, "annotation/proteins/megahit/ONT3_MG_xx_Rashi_S11/final.contigs.faa"))
output:
os.path.join(RESULTS_DIR, "analysis/rgi/megahit.faa")
temp(
os.path.join(RESULTS_DIR, "analysis/rgi/megahit.faa")
)
shell:
"sed 's/\*$//' {input} > {output}"
...
...
@@ -300,10 +301,11 @@ rule rgi_prot:
message:
"AMR prediction w/ RGI: {input}"
shell:
# NOTE: to make sure that the correct DB is used
"rgi clean --local &> {log} && "
"rgi load --card_json {input.db} --local &>> {log} && "
"rgi database --version --local &>> {log} && "
# NOTE: https://github.com/arpcard/rgi/issues/93
# NOTE: https://github.com/arpcard/rgi/issues/93
: KeyError: 'snp'
# need to run the CMD twice
"rgi main --input_sequence {input.faa} --output_file {params.obname} --input_type protein --local -a {params.alignment_tool} --clean -n {threads} &>> {log} || "
"rgi main --input_sequence {input.faa} --output_file {params.obname} --input_type protein --local -a {params.alignment_tool} --clean -n {threads} &>> {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