Пример #1
0
 def __init__(self, cmd, path="", max_threads=4, jar_path=None, jar=None,
              max_memory="500m", timelog="tool_time.log"):
     SequenceRoutines.__init__(self)
     self.path = self.check_path(path)
     self.cmd = cmd
     self.threads = max_threads
     #print(jar_path)
     self.jar_path = self.check_path(jar_path) if jar_path else None
     self.jar = jar
     self.max_memory = max_memory
     self.timelog = timelog
Пример #2
0
    def __init__(self):
        SequenceRoutines.__init__(self)

        self.GFF_SCAFFOLD_COLUMN = 0
        self.GFF_SOURCE_COLUMN = 1
        self.GFF_FEATURETYPE_COLUMN = 2
        self.GFF_START_COLUMN = 3
        self.GFF_END_COLUMN = 4
        self.GFF_SCORE_COLUMN = 5
        self.GFF_STRAND_COLUMN = 6
        self.GFF_PHASE_COLUMN = 7
        self.GFF_ATTRIBUTE_COLUMN = 8

        self.BED_SCAFFOLD_COLUMN = 0
        self.BED_START_COLUMN = 1
        self.BED_END_COLUMN = 2
Пример #3
0
 def __init__(self,
              cmd,
              path="",
              max_threads=4,
              jar_path="",
              jar=None,
              max_memory="500m",
              max_per_thread_memory="500m",
              timelog=None,
              tmp_dir=None):
     SequenceRoutines.__init__(self)
     self.path = self.check_path(path)
     self.cmd = cmd
     self.threads = max_threads
     #print(jar_path)
     self.jar_path = self.check_path(jar_path) if jar_path else ""
     self.jar = jar
     self.max_memory = max_memory
     self.timelog = timelog
     self.max_per_thread_memory = max_per_thread_memory
     self.tmp_dir = tmp_dir
Пример #4
0
 def __init__(self):
     SequenceRoutines.__init__(self)
Пример #5
0
    def __init__(self):
        SequenceRoutines.__init__(self)
        self.mithochondrion_synonym_table = [
            [
                "12S_rRNA", "12S rRNA", "12S ribosomal RNA",
                "small subunit ribosomal RNA", "s-rRNA",
                "s-rRNA; 12S ribosomal RNA", "small ribosomal RNA subunit RNA",
                "12S ribosomal RNA", "12S ribosomal RNA subunit",
                "12S rivbosomal RNA", "12S ribosamal RNA", "l2S ribosomal RNA",
                "12 ribosomal RNA", "12S ribosormal RNA,"
                "12 rRNA", "s-RNA"
            ],
            [
                "16S_rRNA", "16S rRNA", "16S ribosomal RNA",
                "large subunit ribosomal RNA", "l-rRNA",
                "l-rRNA; 16S ribosomal RNA", "large ribosomal RNA subunit RNA",
                "16S ribosomal RNA", "16S ribosomal RNA subunit",
                "16S rivbosomal RNA", "16S ribosamal RNA", "l6S ribosomal RNA",
                "16 ribosomal RNA", "16S ribosormal RNA", "16 rRNA", "l-RNA"
            ],
            [
                "ATP6", "atp6", "ATPase6", "ATPase 6", "ATPase subunit 6",
                "ATP synthase F0 subunit 6", "ATP synthetase F0 subunit 6",
                "ATP synthase subunit 6"
                "ATPase subunits 6", "adenosine triphosphatase subunit 6",
                "ATPase subunit-6"
            ],
            [
                "ATP8", "atp8", "ATPase8", "ATPase 8", "ATPase subunit 8",
                "ATP synthase F0 subunit 8", "ATP synthetase F0 subunit 8",
                "ATP synthase subunit 8", "ATPase subunits 8",
                "adenosine triphosphatase subunit 8",
                "adenosine triphosphate subunit 8", "ATPase subunit-8"
            ],
            [
                "COX1", "COXI", "cytochrome c oxidase subunit 1",
                "cytochrome c oxidase subunit I",
                "Cytochrome c oxidase subunit 1",
                "cytochrome oxidase subunit I",
                "chytochrome c oxidase subunit I", "COI", "CO1", "CO 1",
                "CO I", "coi", "product: cytochrome c oxidase subunit I",
                "cytochrome oxidase subunit 1"
            ],
            [
                "COX2", "COXII", "cytochrome c oxidase subunit 2",
                "cytochrome c oxidase subunit II",
                "Cytochrome c oxidase subunit 2",
                "cytochrome oxidase subunit II",
                "chytochrome c oxidase subunit II", "COII", "CO2", "CO 2",
                "CO II", "coii", "cytochrome oxidase subunit 2"
            ],
            [
                "COX3", "COXIII", "cytochrome c oxidase subunit 3",
                "cytochrome c oxidase subunit III",
                "Cytochrome c oxidase subunit 3",
                "cytochrome oxidase subunit III",
                "chytochrome c oxidase subunit III", "COIII", "CO3", "CO 3",
                "CO III", "coiii", "cytochrome oxidase subunit 3"
            ],
            [
                "CYTB", "cytochrome b", "Cytochrome b", "cytb", "Cytb",
                "Cyt b", "Cytochrome b apoenzyme", "cytochrome b apoenzyme",
                "cytochrome b; TAA stop codon appears afterpolyadenylation"
            ],
            [
                "ND1", "nd1", "nd 1", "ND 1", "Nd 1",
                "NADH dehydrogenase subunit 1", "NADH hydrogenase subunit 1",
                "subunit 1 of the NADH ubiquinone oxidoreductase complex",
                "NADH-1", "NADH1"
            ],
            [
                "ND2", "nd2", "nd 2", "ND 2", "Nd 2",
                "NADH dehydrogenase subunit 2", "NADH hydrogenase subunit 2",
                "subunit 2 of the NADH ubiquinone oxidoreductase complex",
                "#NADH dehydrogenase subunit 2", "NADH-2", "NADH2"
            ],
            [
                "ND3", "nd3", "nd 3", "ND 3", "Nd 3",
                "NADH dehydrogenase subunit 3", "NADH hydrogenase subunit 3",
                "subunit 3 of the NADH ubiquinone oxidoreductase complex",
                "NADH-3", "NADH3"
            ],
            [
                "ND4", "nd4", "nd 4", "ND 4", "Nd 4",
                "NADH dehydrogenase subunit 4", "NADH hydrogenase subunit 4",
                "subunit 4 of the NADH ubiquinone oxidoreductase complex",
                "NADH-4", "NADH4"
            ],
            [
                "ND4L", "nd4l", "nd 4l", "ND 4l", "Nd 4l",
                "NADH dehydrogenase subunit 4L", "NADH hydrogenase subunit 4L",
                "NADH-4L", "NADH4L"
            ],
            [
                "ND5", "nd5", "nd 5", "ND 5", "Nd 5",
                "NADH dehydrogenase subunit 5", "NADH hydrogenase subunit 5",
                "subunit 5 of the NADH ubiquinone oxidoreductase complex",
                "NADH-5", "NADH5"
            ],
            [
                "ND6", "nd6", "nd 6", "ND 6", "Nd 6",
                "NADH dehydrogenase subunit 6", "NADH hydrogenase subunit 6",
                "subunit 6 of the NADH ubiquinone oxidoreductase complex",
                "NADH-6", "NADH6", "NADH dehydrogenase subunit-6"
            ], ["tRNA-Val"], ["tRNA-Leu"], ["tRNA-Phe"], ["tRNA-Pro"],
            ["tRNA-Thr"], ["tRNA-Glu"], ["tRNA-Ser"], ["tRNA-His"],
            ["tRNA-Arg"], ["tRNA-Gly"], ["tRNA-Lys"], ["tRNA-Asp"],
            ["tRNA-Tyr"], ["tRNA-Cys"], ["tRNA-Asn"], ["tRNA-Ala"],
            ["tRNA-Trp"], ["tRNA-Met"], ["tRNA-Ile"], ["tRNA-Gln"]
        ]
        self.protein_gene_list = [
            "ATP6",
            "ATP8",
            "COX1",
            "COX2",
            "COX3",
            "CYTB",
            "ND1",
            "ND2",
            "ND3",
            "ND4L",
            "ND4",
            "ND5",
            "ND6",
        ]

        self.rRNA_gene_list = ["12S_rRNA", "16S_rRNA"]