Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Metagenomics
snakemake
Commits
c7cb5e46
Commit
c7cb5e46
authored
Jul 28, 2021
by
Kenzo-Hugo Hillion
♻
Browse files
start Snakefile to extract unmapped pairs
parent
deffb1dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
tools/samtools/extract_unmapped_pairs/Snakefile
0 → 100644
View file @
c7cb5e46
__extract_unmapped_pairs_samtools_exec_command = config.get(
'extract_unmapped_pairs', {}
).get('samtools_exec_command', 'samtools')
__extract_unmapped_pairs_modules = config.get('extract_unmapped_pairs', {}).get('modules')
rule extract_unmapped_pairs:
input:
__extract_unmapped_pairs_input
output:
__extract_unmapped_pairs_output
params:
exec_command = __extract_unmapped_pairs_samtools_exec_command,
modules = __extract_unmapped_pairs_modules,
options = __extract_unmapped_pairs_options
run:
command = []
if params.modules:
command.append("module load {params.modules}")
command.append("{params.exec_command} view -u -f 4 -F 264 {input} > {output}.tmps1.bam")
command.append("{params.exec_command} view -u -f 8 -F 260 {input} > {output}.tmps2.bam")
command.append("{params.exec_command} view -u -f 12 -F 256 {input} > {output}.tmps3.bam")
command.append(
"{params.exec_command} merge -u - {output}.tmps[123].bam | {params.exec_command} sort -n > {output}"
)
shell(" && ".join(command))
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment