Skip to content

Commit

Permalink
Updated imports
Browse files Browse the repository at this point in the history
  • Loading branch information
fbeghini committed Mar 25, 2020
1 parent 862dbd4 commit 91b8ff4
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 15 deletions.
2 changes: 2 additions & 0 deletions cmseq/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from .cmseq import CMSEQ_DEFAULTS
from .cmseq import BamFile
5 changes: 3 additions & 2 deletions cmseq/breadth_depth.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/usr/bin/env python
from __future__ import print_function
from cmseq import CMSEQ_DEFAULTS
from cmseq import BamFile

from .cmseq import CMSEQ_DEFAULTS
from .cmseq import BamFile

import pandas as pd
import numpy as np
Expand Down
7 changes: 3 additions & 4 deletions cmseq/consensus.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
#!/usr/bin/env python

from cmseq import CMSEQ_DEFAULTS
from cmseq import BamFile

import pandas as pd
import numpy as np
import argparse
Expand All @@ -12,6 +8,9 @@
from Bio.SeqRecord import SeqRecord
from Bio.Alphabet import IUPAC

from .cmseq import CMSEQ_DEFAULTS
from .cmseq import BamFile

def consensus_from_file():
parser = argparse.ArgumentParser(description="outputs the consensus in FASTA format. Non covered positions (or quality-trimmed positions) are reported as a dashes: -")
parser.add_argument('BAMFILE', help='The file on which to operate')
Expand Down
7 changes: 3 additions & 4 deletions cmseq/poly.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
#!/usr/bin/env python

from cmseq import CMSEQ_DEFAULTS
from cmseq import BamFile

import pandas as pd
import numpy as np
import argparse
import sys

from .cmseq import CMSEQ_DEFAULTS
from .cmseq import BamFile

def poly_from_file():
parser = argparse.ArgumentParser(description="Reports the polymorpgic rate of each reference (polymorphic bases / total bases). Focuses only on covered regions (i.e. depth >= 1)")
parser.add_argument('BAMFILE', help='The file on which to operate')
Expand Down
7 changes: 3 additions & 4 deletions cmseq/polymut.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
#!/usr/bin/env python

from cmseq import CMSEQ_DEFAULTS
from cmseq import BamFile

import pandas as pd
import numpy as np
import argparse
import sys

from .cmseq import CMSEQ_DEFAULTS
from .cmseq import BamFile

def polymut_from_file():
parser = argparse.ArgumentParser(description="Reports the polymorpgic rate of each reference (polymorphic bases / total bases). Focuses only on covered regions (i.e. depth >= 1)")
parser.add_argument('BAMFILE', help='The file on which to operate')
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from io import open
import os

install_requires = ["numpy", "pysam", "pandas", "biopython", "bcbio-gff"]
install_requires = ["numpy", "scipy", "pysam", "pandas", "biopython", "bcbio-gff"]
setuptools.setup(
name='CMSeq',
version='1.0.0',
Expand Down

0 comments on commit 91b8ff4

Please sign in to comment.