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
#!/usr/bin/env python | |
from __future__ import division | |
__author__ = "William Walters" | |
__copyright__ = "Copyright 2011, The QIIME Project" | |
__credits__ = ["William Walters"] | |
__license__ = "GPL" | |
__version__ = "1.8.0-dev" | |
__maintainer__ = "William Walters" | |
__email__ = "William.A.Walters@colorado.edu" |
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
#!/usr/bin/env python | |
from __future__ import division | |
from sys import argv | |
from qiime.util import parse_command_line_parameters, make_option, gzip_open | |
if argv[1].endswith('.gz'): | |
f = gzip_open(argv[1]) | |
else: |
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
#!/usr/bin/env python | |
from __future__ import division | |
__author__ = "William Walters" | |
__copyright__ = "Copyright 2011, The QIIME Project" | |
__credits__ = ["William Walters"] | |
__license__ = "GPL" | |
__version__ = "1.8.0-dev" | |
__maintainer__ = "William Walters" | |
__email__ = "William.A.Walters@colorado.edu" |
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
#!/usr/bin/env python | |
from sys import argv | |
fasta_f = open(argv[1], "U") | |
fasta_out = open(argv[2], "w") | |
# This script will parse out labels from a fasta label that do not have sequences | |
# Will only work for case of one line for the label, one line for the sequences. |
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
#!/usr/bin/env python | |
from __future__ import division | |
__author__ = "William Walters" | |
__copyright__ = "Copyright 2011, The QIIME Project" | |
__credits__ = ["William Walters"] | |
__license__ = "GPL" | |
__version__ = "1.8.0-dev" | |
__maintainer__ = "William Walters" | |
__email__ = "William.A.Walters@colorado.edu" |
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
#!/usr/bin/env python | |
from __future__ import division | |
__author__ = "William Walters" | |
__copyright__ = "Copyright 2011, The QIIME Project" | |
__credits__ = ["William Walters"] | |
__license__ = "GPL" | |
__version__ = "1.8.0-dev" | |
__maintainer__ = "William Walters" | |
__email__ = "William.A.Walters@colorado.edu" |
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
#!/usr/bin/env python | |
from __future__ import division | |
__author__ = "William Walters" | |
__copyright__ = "Copyright 2011, The QIIME Project" | |
__credits__ = ["William Walters"] | |
__license__ = "GPL" | |
__version__ = "1.8.0-dev" | |
__maintainer__ = "William Walters" | |
__email__ = "William.A.Walters@colorado.edu" |
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
#!/usr/bin/env python | |
"""Usage: | |
python trim_fasta.py X Y Z | |
where | |
X is the input fasta file | |
Y is the output fasta file | |
Z is length to trim from beginning of the reads | |
""" |
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
#!/usr/bin/env python | |
# Usage: python find_all_gap_positions.py X Y | |
# where X is the input aligned fasta file, Y is the output text file for gap | |
# non gapped positions | |
from sys import argv | |
from cogent.parse.fasta import MinimalFastaParser |
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
#!/usr/bin/env python | |
from sys import argv | |
# Usage: python parse_to_7_taxa_levels.py X Y | |
# where X is the input taxonomy mapping file, Y is the output taxonomy mapping file | |
# Purpose is to parse output of Mike Robeson's script to force taxa into | |
# 7 levels. | |
taxa_mapping = open(argv[1], "U") | |
parsed_taxa = open(argv[2], "w") |
OlderNewer