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 python2 | |
''' | |
skeleton for parallel python 2 scripts | |
Marco Galardini 2015 | |
GPL v3.0 | |
''' | |
import sys | |
from multiprocessing.queues import Queue | |
import multiprocessing |
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 | |
doc = """ | |
Quickly estimates insert sizes of read datasets, given some sequence(s) they can be mapped to. | |
Author: Rayan Chikhi | |
short usage: <reference> <*.fastq> | |
example: | |
estimate-insert-sizes contigs.fa readsA_1.fq readsA_2.fq readsB_1.fq readsB_2.fq |
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 | |
''' | |
Run and save a jupyter notebook by providing arguments from the command line | |
Uses the nbparameterise package, and requires the first cell to have variables | |
definitions. | |
Command line parsing based on this Stack Overflow answer: | |
https://stackoverflow.com/a/42355279/1237531 | |
''' |
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
batch | strain | replica | |
---|---|---|---|
batch_1 | strain_41 | 1 | |
batch_4 | strain_41 | 2 | |
batch_1 | strain_28 | 1 | |
batch_4 | strain_28 | 2 | |
batch_1 | strain_26 | 1 | |
batch_4 | strain_26 | 2 | |
batch_5 | strain_25 | 1 | |
batch_3 | strain_25 | 2 | |
batch_5 | strain_4 | 1 |
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 | |
'''Description here''' | |
import logging | |
import argparse | |
def get_options(): | |
description = '' | |
parser = argparse.ArgumentParser(description=description) |
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 | |
if __name__ == "__main__": | |
import sys | |
if len(sys.argv) < 2: | |
print('USAGE: python nwk2mat.py TREE.nwk') | |
sys.exit(1) | |
import pandas as pd |
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 | |
def get_options(): | |
import argparse | |
parser = argparse.ArgumentParser() | |
parser.add_argument('reference', | |
help='Reference fasta file') | |
parser.add_argument('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
OG | M | J | A | S | R | K | U | X | P | |
---|---|---|---|---|---|---|---|---|---|---|
COG3079 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | |
COG0745 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |
COG3206 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | |
COG0475 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | |
COG1114 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | |
COG1028 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |
COG2812 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | |
COG0086 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |
COG0604 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
OlderNewer