-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
995149f
commit a591522
Showing
10 changed files
with
404 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
""" | ||
timite build | ||
Cluster, align TIRs and build HMM | ||
Input: | ||
- unaligned TIR sequences, or | ||
- TIR alignment | ||
Output: | ||
- TIR-HMM | ||
- Report alignment to screen | ||
- Report variation | ||
- Report TIR stats: length, variation, identity, duplicates | ||
- If high diversity suggest making sub-models | ||
""" | ||
|
||
import argparse | ||
import logging | ||
|
||
|
||
def mainArgs(): | ||
"""Parse command line arguments.""" | ||
parser = argparse.ArgumentParser( | ||
description="Build TIR-HMM from a collection of TIRsequences", | ||
prog="tirmite build", | ||
) | ||
parser.add_argument( | ||
"--loglevel", | ||
default="INFO", | ||
choices=["DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL"], | ||
help="Set logging level.", | ||
) | ||
args = parser.parse_args() | ||
return args | ||
|
||
|
||
def main(): | ||
args = mainArgs() | ||
logging.info("Running analysis") | ||
|
||
|
||
""" | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
""" | ||
tirmite classify | ||
cluster complete elements | ||
search for known transposase domains | ||
update gff with cluster labels | ||
Input: | ||
- Element json | ||
- or element fasta | ||
- Clustering identity threshold | ||
- Domain database | ||
Output: | ||
- Element JSON with cluster labels | ||
- GFF with cluster labels | ||
""" | ||
|
||
import argparse | ||
import logging | ||
|
||
|
||
def mainArgs(): | ||
"""Parse command line arguments.""" | ||
|
||
parser = argparse.ArgumentParser( | ||
description="Cluster elements on identity. Search for TPase domains. Apply Wicker classification.", | ||
prog="tirmite classify", | ||
) | ||
|
||
parser.add_argument( | ||
"--loglevel", | ||
default="INFO", | ||
choices=["DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL"], | ||
help="Set logging level.", | ||
) | ||
args = parser.parse_args() | ||
return args | ||
|
||
|
||
def main(): | ||
args = mainArgs() | ||
logging.info("Running analysis") | ||
|
||
|
||
""" | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
""" | ||
tirmite compare | ||
report unique hits in each set | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
""" | ||
tirmite extract | ||
Extract TIRs from list of elements | ||
Input: | ||
- TE sequence | ||
Output: | ||
- TIR sequences as fasta | ||
- Print sequences to screen | ||
- Print as proportion of input sequence | ||
- Report if TIRs are too short for meaningful HMM hits | ||
""" | ||
import argparse | ||
import logging | ||
|
||
|
||
def mainArgs(): | ||
"""Parse command line arguments.""" | ||
|
||
parser = argparse.ArgumentParser( | ||
description=" Identify and extract TIR sequences from one or more candidate transposon sequences.", | ||
prog="tirmite extract", | ||
) | ||
|
||
parser.add_argument( | ||
"--loglevel", | ||
default="INFO", | ||
choices=["DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL"], | ||
help="Set logging level.", | ||
) | ||
|
||
args = parser.parse_args() | ||
return args | ||
|
||
|
||
def main(): | ||
args = mainArgs() | ||
logging.info("Running analysis") | ||
|
||
|
||
""" | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
""" | ||
tirmite find | ||
Query genome for HMM hits | ||
Input: | ||
- TIR HMM | ||
- Path to genome | ||
- Filtering options | ||
- Genome index | ||
Output: | ||
- Bedfile of hits coords with quality + strand | ||
- Optional collection of unique hit sequences | ||
- Optional add flanks to extraction | ||
""" | ||
|
||
import argparse | ||
import logging | ||
|
||
|
||
def mainArgs(): | ||
"""Parse command line arguments.""" | ||
|
||
parser = argparse.ArgumentParser( | ||
description="Find TIR model matches in a genome.", | ||
prog="tirmite find", | ||
) | ||
|
||
parser.add_argument( | ||
"--loglevel", | ||
default="INFO", | ||
choices=["DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL"], | ||
help="Set logging level.", | ||
) | ||
args = parser.parse_args() | ||
return args | ||
|
||
|
||
def main(): | ||
args = mainArgs() | ||
logging.info("Running analysis") | ||
|
||
|
||
""" | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
""" | ||
tirmite merge | ||
merge two sets of hits | ||
Input: | ||
- Multiple hit bedfiles (BLAST, HMM, other) | ||
Output: | ||
- Bedfile of merged hits | ||
""" | ||
|
||
import argparse | ||
import logging | ||
|
||
|
||
def mainArgs(): | ||
"""Parse command line arguments.""" | ||
|
||
parser = argparse.ArgumentParser( | ||
description="Merge TIR features from diff runs of search methods.", | ||
prog="tirmite merge", | ||
) | ||
|
||
parser.add_argument( | ||
"--loglevel", | ||
default="INFO", | ||
choices=["DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL"], | ||
help="Set logging level.", | ||
) | ||
args = parser.parse_args() | ||
return args | ||
|
||
|
||
def main(): | ||
args = mainArgs() | ||
logging.info("Running analysis") | ||
|
||
|
||
""" | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
""" | ||
tirmite pair | ||
Take list of hits (HMM or BLAST) and perform pairing. | ||
Input: | ||
- TIR hit file (BED) | ||
- Genome path | ||
- Index path | ||
Output: | ||
- GFF annotation | ||
- Element JSON file | ||
- TIRs of Paired elements only | ||
- FASTA of elements | ||
""" | ||
|
||
import argparse | ||
import logging | ||
|
||
|
||
def mainArgs(): | ||
"""Parse command line arguments.""" | ||
|
||
parser = argparse.ArgumentParser( | ||
description="Run pairing procedure on TIR hits", | ||
prog="tirmite pair", | ||
) | ||
|
||
parser.add_argument( | ||
"--loglevel", | ||
default="INFO", | ||
choices=["DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL"], | ||
help="Set logging level.", | ||
) | ||
args = parser.parse_args() | ||
return args | ||
|
||
|
||
logging.info("Running analysis") | ||
|
||
""" | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
""" | ||
tirmite report | ||
Output gffs for elements and TIRs, | ||
output fasta, | ||
report length distribution, | ||
stats on found elements | ||
""" |
Oops, something went wrong.