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 12:55] – [Opciones extra] osotolongo | genetica:pywgs [2020/10/21 09:12] – [Programatic tree] osotolongo | ||
---|---|---|---|
Line 6: | Line 6: | ||
===== tl;dr ===== | ===== tl;dr ===== | ||
< | < | ||
- | | + | |
+ | </ | ||
+ | o | ||
+ | < | ||
+ | | ||
</ | </ | ||
Opciones: | Opciones: | ||
- | * < | + | * -s < |
* -o < | * -o < | ||
* -cut < | * -cut < | ||
* -g : Indica que no se borren los archivos temporales. Por defecto se borran, a no ser que se ponga este switch. | * -g : Indica que no se borren los archivos temporales. Por defecto se borran, a no ser que se ponga este switch. | ||
+ | === Ejemplo === | ||
+ | < | ||
+ | [osotolongo@brick03 wgs]$ bin/wgs.py -o / | ||
+ | Submitted batch job 1708 | ||
+ | Submitted batch job 1709 | ||
+ | Submitted batch job 1710 | ||
+ | Submitted batch job 1711 | ||
+ | Submitted batch job 1715 | ||
+ | Submitted batch job 1716 | ||
+ | Submitted batch job 1717 | ||
+ | Submitted batch job 1718 | ||
+ | Submitted batch job 1722 | ||
+ | Submitted batch job 1723 | ||
+ | Submitted batch job 1724 | ||
+ | Submitted batch job 1725 | ||
+ | Submitted batch job 1729 | ||
+ | [osotolongo@brick03 wgs]$ squeue | ||
+ | JOBID PARTITION | ||
+ | 1712 fast sam_seq- osotolon PD | ||
+ | 1713 fast verify_s osotolon PD | ||
+ | 1714 fast validate osotolon PD | ||
+ | 1719 fast sam_seq- osotolon PD | ||
+ | 1720 fast verify_s osotolon PD | ||
+ | 1721 fast validate osotolon PD | ||
+ | 1726 fast sam_seq- osotolon PD | ||
+ | 1727 fast verify_s osotolon PD | ||
+ | 1728 fast validate osotolon PD | ||
+ | 1729 fast wgs_end osotolon PD | ||
+ | 1708 fast sam_seq- osotolon | ||
+ | 1709 fast sam_seq- osotolon | ||
+ | 1710 fast sam_seq- osotolon | ||
+ | 1711 fast sam_seq- osotolon | ||
+ | 1715 fast sam_seq- osotolon | ||
+ | 1716 fast sam_seq- osotolon | ||
+ | 1717 fast sam_seq- osotolon | ||
+ | 1718 fast sam_seq- osotolon | ||
+ | 1722 fast sam_seq- osotolon | ||
+ | 1723 fast sam_seq- osotolon | ||
+ | 1724 fast sam_seq- osotolon | ||
+ | 1725 fast sam_seq- osotolon | ||
+ | </ | ||
===== Pipeline ===== | ===== Pipeline ===== | ||
Line 138: | 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 263: | Line 307: | ||
import getopt | import getopt | ||
import re | import re | ||
+ | import subprocess | ||
""" | """ | ||
Line 349: | 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 419: | 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 610: | Line 655: | ||
< | < | ||
- | $ ./wgs.py -cut / | + | $ ./wgs.py -c / |
</ | </ | ||
Line 624: | 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