Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
# Conflicts:
#	build/lib/hometools/hometools.py
#	hometools.egg-info/PKG-INFO
  • Loading branch information
mnshgl0110 committed Jan 31, 2024
2 parents 78599df + 2e7608c commit 7ef32a6
Show file tree
Hide file tree
Showing 10 changed files with 34 additions and 0 deletions.
22 changes: 22 additions & 0 deletions build/lib/hometools/hometools.py
Original file line number Diff line number Diff line change
Expand Up @@ -1773,6 +1773,7 @@ def pbamrc(args):
# END


<<<<<<< HEAD
def bamrc2af(args):
"""
Reads the output of pbamrc and a corresponding VCF file and returns the allele frequencies of the alt alleles.
Expand Down Expand Up @@ -1813,6 +1814,8 @@ def bamrc2af(args):
# END


=======
>>>>>>> origin/master
def run_ppileup(locs, out, bam, pars):
from subprocess import Popen, PIPE
with open(out, 'w') as fout:
Expand Down Expand Up @@ -2609,13 +2612,17 @@ def main(cmd):
# <editor-fold desc="BAM Commands">
parser_bamcov = subparsers.add_parser("bamcov", help="BAM: Get mean read-depth for chromosomes from a BAM file", formatter_class=argparse.ArgumentDefaultsHelpFormatter)
parser_pbamrc = subparsers.add_parser("pbamrc", help="BAM: Run bam-readcount in a parallel manner by dividing the input bed file.", formatter_class=argparse.ArgumentDefaultsHelpFormatter)
<<<<<<< HEAD
parser_bamrc2af = subparsers.add_parser("bamrc2af", help="BAM: Reads the output of pbamrc and a corresponding VCF file and saves the allele frequencies of the ref/alt alleles.", formatter_class=argparse.ArgumentDefaultsHelpFormatter)
=======
>>>>>>> origin/master
parser_splitbam = subparsers.add_parser("splitbam", help="BAM: Split a BAM files based on TAG value. BAM file must be sorted using the TAG.", formatter_class=argparse.ArgumentDefaultsHelpFormatter)
parser_mapbp = subparsers.add_parser("mapbp", help="BAM: For a given reference coordinate get the corresponding base and position in the reads/segments mapping the reference position", formatter_class=argparse.ArgumentDefaultsHelpFormatter)
parser_bam2coords = subparsers.add_parser("bam2coords", help="BAM: Convert BAM/SAM file to alignment coords", formatter_class=argparse.ArgumentDefaultsHelpFormatter)
parser_ppileup = subparsers.add_parser("ppileup", help="BAM: Currently it is slower than just running mpileup on 1 CPU. Might be possible to optimize later. Run samtools mpileup in parallel when pileup is required for specific positions by dividing the input bed file.", formatter_class=argparse.ArgumentDefaultsHelpFormatter)
# </editor-fold>

<<<<<<< HEAD
# <editor-fold desc="syri CLI">
parser_runsyri = subparsers.add_parser("runsyri", help=hyellow("syri: Parser to align and run syri on two genomes"),
formatter_class=argparse.ArgumentDefaultsHelpFormatter)
Expand All @@ -2632,6 +2639,18 @@ def main(cmd):
parser_plotbar = subparsers.add_parser("pltbar", help="Plot: Generate barplot. Input: a two column file with first column as features and second column as values", formatter_class=argparse.ArgumentDefaultsHelpFormatter)
# </editor-fold>

=======

## syri
parser_runsyri = subparsers.add_parser("runsyri", help=hyellow("syri: Parser to align and run syri on two genomes"), formatter_class=argparse.ArgumentDefaultsHelpFormatter)
parser_syriidx = subparsers.add_parser("syriidx", help=hyellow("syri: Generates index for syri.out. Filters non-SR annotations, then bgzip, then tabix index"), formatter_class=argparse.ArgumentDefaultsHelpFormatter)
parser_syri2bed = subparsers.add_parser("syri2bed", help=hyellow("syri: Converts syri output to bedpe format"), formatter_class=argparse.ArgumentDefaultsHelpFormatter)

## Plotting
parser_plthist = subparsers.add_parser("plthist", help="Plot: Takes frequency output (like from uniq -c) and generates a histogram plot", formatter_class=argparse.ArgumentDefaultsHelpFormatter)
parser_plotal = subparsers.add_parser("plotal", help="Plot: Visualise pairwise-whole genome alignments between multiple genomes", formatter_class=argparse.ArgumentDefaultsHelpFormatter)
parser_plotbar = subparsers.add_parser("pltbar", help="Plot: Generate barplot. Input: a two column file with first column as features and second column as values", formatter_class=argparse.ArgumentDefaultsHelpFormatter)
>>>>>>> origin/master

## Assembly graphs
parser_asmreads = subparsers.add_parser("asmreads", help=hyellow("GFA: For a given genomic region, get reads that constitute the corresponding assembly graph"), formatter_class=argparse.ArgumentDefaultsHelpFormatter)
Expand All @@ -2654,11 +2673,14 @@ def main(cmd):
parser.print_help()
sys.exit()

<<<<<<< HEAD
# bamrc2af
parser_xls2tsv.set_defaults(func=xls2csv)
parser_xls2tsv.add_argument("xls", help="Input excel file", type=argparse.FileType('r'))


=======
>>>>>>> origin/master
# xls2csv
parser_xls2tsv.set_defaults(func=xls2csv)
parser_xls2tsv.add_argument("xls", help="Input excel file", type=argparse.FileType('r'))
Expand Down
6 changes: 6 additions & 0 deletions build/scripts-3.6/hometools
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/dss/dsslegfs01/pn29fi/pn29fi-dss-0003/software/bin_manish/anaconda3/envs/bamrc/bin/python

from hometools.hometools import main
import sys
if __name__ == '__main__':
main(sys.argv[1:])
6 changes: 6 additions & 0 deletions build/scripts-3.8/hometools
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/dss/dsslegfs01/pn29fi/pn29fi-dss-0003/software/bin_manish/anaconda3/envs/mgpy3.8/bin/python

from hometools.hometools import main
import sys
if __name__ == '__main__':
main(sys.argv[1:])
Binary file added dist/hometools-1.3.1-py3.6.egg
Binary file not shown.
Binary file added dist/hometools-1.3.1-py3.8.egg
Binary file not shown.
Empty file modified hometools/__init__.py
100755 → 100644
Empty file.
Binary file added hometools/__pycache__/__init__.cpython-36.pyc
Binary file not shown.
Binary file added hometools/__pycache__/__init__.cpython-38.pyc
Binary file not shown.
Empty file modified hometools/classes.py
100755 → 100644
Empty file.
Empty file modified hometools/hometools.py
100755 → 100644
Empty file.

0 comments on commit 7ef32a6

Please sign in to comment.