ploidy_analysis_using_ploidyngs
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| ploidy_analysis_using_ploidyngs [2022/06/24 15:33] – 134.190.232.29 | ploidy_analysis_using_ploidyngs [2022/06/24 16:01] (current) – [UPDATE (June 2022)] 134.190.232.29 | ||
|---|---|---|---|
| Line 46: | Line 46: | ||
| < | < | ||
| - | grep Fourth myoutput.tab | cut -f4 | sort -n | + | $ grep Fourth myoutput.tab | cut -f4 | sort -n |
| - | grep Third myoutput.tab | cut -f4 | sort -n | + | $ grep Third myoutput.tab | cut -f4 | sort -n |
| </ | </ | ||
| To remove lines containing " | To remove lines containing " | ||
| < | < | ||
| - | grep -vP " | + | $ grep -vP " |
| </ | </ | ||
| - | Once satisfied with the tab you need to make a pdf (it is suppose to generate it automatically | + | Once satisfied with the tab you need to make a PDF (it is suppose to generate it automatically |
| but it doesn' | but it doesn' | ||
| Line 65: | Line 65: | ||
| This will generate a PDF called '' | This will generate a PDF called '' | ||
| + | |||
| + | ==== UPDATE (June 2022) ==== | ||
| + | |||
| + | I (Joran) have updated the '' | ||
| + | |||
| + | The main new feature is the '' | ||
| + | |||
| + | Other updates: | ||
| + | * Positions reported in the .tab file are now 1-indexed (i.e. starting at 1) instead of 0-indexed (i.e. starting at 0) | ||
| + | * If you have ''/ | ||
| + | * The axis titles in the histogram will be a bit easier to understand | ||
| + | * The script will now report the total number of heteromorphic positions per contig and over all contigs | ||
| + | |||
| + | To call it, use a Perun submission script like this one | ||
| + | |||
| + | < | ||
| + | #!/bin/bash | ||
| + | #$ -S /bin/bash | ||
| + | . / | ||
| + | #$ -cwd | ||
| + | #$ -q 256G-batch | ||
| + | |||
| + | source activate ploidyNGS-dependencies | ||
| + | export PATH="/ | ||
| + | |||
| + | BAMFILE=' | ||
| + | MINCOV=10 | ||
| + | MAXDEPTH=2000 | ||
| + | OUTBASE=' | ||
| + | |||
| + | ploidyNGS_minCov.py \ | ||
| + | --out $OUTBASE \ | ||
| + | --bam $BAMFILE \ | ||
| + | --min_cov $MINCOV \ | ||
| + | --max_depth $MAXDEPTH | ||
| + | |||
| + | conda deactivate | ||
| + | </ | ||
| + | |||
| + | A more elaborate script is available on the GitHub repository of the Roger lab: https:// | ||
| + | |||
| + | The updated scripts are also available on the original GitHub repository https:// | ||
ploidy_analysis_using_ploidyngs.1656095611.txt.gz · Last modified: by 134.190.232.29 · Currently locked by: 216.73.216.59
