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 enumerate_fasta.py X > Y | |
where | |
X is the input fasta file | |
Y is the output fasta file | |
""" | |
from sys import argv |
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 filter_short_reads.py X Y > Z | |
where | |
X is the input fasta file | |
Y is the minimum length | |
Z is the output fasta file | |
""" |
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 | |
"""Somewhat hackish way to eliminate non-ASCII characters in a text file, | |
such as a taxonomy mapping file, with QIIME. Reads through the file, and | |
removes all characters above decimal value 127. Additionally, asterisk "*" | |
characters are removed, as these inhibit the RDP classifier. | |
Usage: | |
python parse_nonstandard_chars.py X > Y | |
where X is the input file to be parsed, and Y is the output parsed file""" |