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:30] – 134.190.232.29 | ploidy_analysis_using_ploidyngs [2022/06/24 16:01] (current) – [UPDATE (June 2022)] 134.190.232.29 | ||
|---|---|---|---|
| Line 45: | Line 45: | ||
| To see the sorted content of the Third and Fourth lines | To see the sorted content of the Third and Fourth lines | ||
| - | grep Fourth myoutput.tab |cut -f4 |sort -n\\ | + | < |
| - | grep Third myoutput.tab |cut -f4 |sort -n | + | $ grep Fourth myoutput.tab | cut -f4 | sort -n |
| + | $ grep Third myoutput.tab | cut -f4 | sort -n | ||
| + | </ | ||
| + | To remove lines containing " | ||
| + | < | ||
| + | $ grep -vP " | ||
| + | </ | ||
| - | To remove Third and Fourth lines from the tab | + | Once satisfied with the tab you need to make a PDF (it is suppose to generate it automatically |
| + | but it doesn' | ||
| - | grep -v Fourth | + | On the command line execute |
| + | < | ||
| + | $ Rscript --vanilla / | ||
| + | </ | ||
| - | Once satisfied | + | This will generate a PDF called '' |
| - | but it doesn't) | + | |
| + | ==== 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 | ||
| + | * 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 | ||
| + | |||
| + | < | ||
| + | # | ||
| + | #$ -S /bin/bash | ||
| + | . / | ||
| + | #$ -cwd | ||
| + | #$ -q 256G-batch | ||
| + | |||
| + | source activate ploidyNGS-dependencies | ||
| + | export PATH="/ | ||
| + | |||
| + | BAMFILE='dnaseq_vs_canu_ergo_assembly.sorted.bam' | ||
| + | MINCOV=10 | ||
| + | MAXDEPTH=2000 | ||
| + | OUTBASE=' | ||
| + | |||
| + | ploidyNGS_minCov.py \ | ||
| + | --out $OUTBASE \ | ||
| + | --bam $BAMFILE \ | ||
| + | --min_cov $MINCOV \ | ||
| + | --max_depth $MAXDEPTH | ||
| - | On the commandline | + | conda deactivate |
| + | </ | ||
| - | | + | A more elaborate script is available on the GitHub repository of the Roger lab: https://github.com/RogerLab/gospel_of_andrew. |
| - | This will generate a pdf called NA which you can transfer to your home computer to look at. | + | The updated scripts are also available on the original GitHub repository https:// |
ploidy_analysis_using_ploidyngs.1656095436.txt.gz · Last modified: by 134.190.232.29
