genetica:pywgs
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
genetica:pywgs [2020/10/10 13:20] – [tl;dr] osotolongo | genetica:pywgs [2020/10/21 09:12] – [Programatic tree] osotolongo | ||
---|---|---|---|
Line 6: | Line 6: | ||
===== tl;dr ===== | ===== tl;dr ===== | ||
< | < | ||
- | | + | |
+ | </ | ||
+ | o | ||
+ | < | ||
+ | | ||
</ | </ | ||
Opciones: | Opciones: | ||
Line 178: | Line 182: | ||
ord_content += '# | ord_content += '# | ||
ord_content += '# | ord_content += '# | ||
- | ord_content += bwa+' mem -t 4 -R " | + | ord_content += bwa+' mem -t 4 -R "@RG\\tID:' |
osf = open(orderfile, | osf = open(orderfile, | ||
osf.write(ord_content) | osf.write(ord_content) | ||
Line 303: | Line 307: | ||
import getopt | import getopt | ||
import re | import re | ||
+ | import subprocess | ||
""" | """ | ||
Line 389: | Line 394: | ||
ord_content += '# | ord_content += '# | ||
ord_content += '# | ord_content += '# | ||
- | ord_content += bwa+' mem -t 4 -R " | + | ord_content += bwa+' mem -t 4 -R "@RG\\tID:' |
osf = open(orderfile, | osf = open(orderfile, | ||
osf.write(ord_content) | osf.write(ord_content) | ||
Line 459: | Line 464: | ||
ord_content += '# | ord_content += '# | ||
ord_content += '# | ord_content += '# | ||
- | if(debug): | + | if not debug: |
ord_content += 'rm -rf ' | ord_content += 'rm -rf ' | ||
else: | else: | ||
Line 650: | Line 655: | ||
< | < | ||
- | $ ./wgs.py -cut / | + | $ ./wgs.py -c / |
</ | </ | ||
Line 664: | Line 669: | ||
deja un subdirectorio //tmp// por cada sujeto con sus archivos temporales correspondientes. Ejemplo para seq-5, estos archivos estarian en // / | deja un subdirectorio //tmp// por cada sujeto con sus archivos temporales correspondientes. Ejemplo para seq-5, estos archivos estarian en // / | ||
+ | |||
+ | ===== Usando containers ===== | ||
+ | |||
+ | He logrado crear un container con todas las herramientas del pipeline. Tal y como esta construido el script para que funcione bastaria con cambiar los paths del sistema para incluir el container. Esto es, arriba del todo cambiar las lineas, | ||
+ | |||
+ | <code python> | ||
+ | ref_dir = '/ | ||
+ | container = ' | ||
+ | bwa = container+' | ||
+ | picard = container+' | ||
+ | samtools = container+' | ||
+ | verifybamib = container+' | ||
+ | gatk3 = container+' | ||
+ | gatk4 = container+' | ||
+ | gatk4_l = container+' | ||
+ | </ | ||
+ | |||
+ | en principio todo los demas es igual, | ||
+ | |||
+ | < | ||
+ | [osotolongo@brick03 wgs]$ bin/cwgs.py -o / | ||
+ | Submitted batch job 76 | ||
+ | Submitted batch job 77 | ||
+ | Submitted batch job 78 | ||
+ | Submitted batch job 79 | ||
+ | Submitted batch job 83 | ||
+ | Submitted batch job 84 | ||
+ | Submitted batch job 85 | ||
+ | Submitted batch job 86 | ||
+ | Submitted batch job 90 | ||
+ | Submitted batch job 91 | ||
+ | Submitted batch job 92 | ||
+ | Submitted batch job 93 | ||
+ | Submitted batch job 97 | ||
+ | [osotolongo@brick03 wgs]$ squeue | ||
+ | JOBID PARTITION | ||
+ | 80 fast sam_seq- osotolon PD | ||
+ | 81 fast verify_s osotolon PD | ||
+ | 82 fast validate osotolon PD | ||
+ | 87 fast sam_seq- osotolon PD | ||
+ | 88 fast verify_s osotolon PD | ||
+ | 89 fast validate osotolon PD | ||
+ | 94 fast sam_seq- osotolon PD | ||
+ | 95 fast verify_s osotolon PD | ||
+ | 96 fast validate osotolon PD | ||
+ | 97 fast wgs_end osotolon PD | ||
+ | 76 fast sam_seq- osotolon | ||
+ | 77 fast sam_seq- osotolon | ||
+ | 78 fast sam_seq- osotolon | ||
+ | 79 fast sam_seq- osotolon | ||
+ | 83 fast sam_seq- osotolon | ||
+ | 84 fast sam_seq- osotolon | ||
+ | 85 fast sam_seq- osotolon | ||
+ | 86 fast sam_seq- osotolon | ||
+ | 90 fast sam_seq- osotolon | ||
+ | 91 fast sam_seq- osotolon | ||
+ | 92 fast sam_seq- osotolon | ||
+ | 93 fast sam_seq- osotolon | ||
+ | </ | ||
+ |
genetica/pywgs.txt · Last modified: 2020/10/27 16:12 by osotolongo