annotate xenaHeader.py @ 60:bf57076e27b9 default tip

change genomicSegment input data
author jingchunzhu@gmail.com
date Tue, 27 Oct 2015 16:07:09 -0700
parents a38cc72edd75
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
48
a38cc72edd75 xena header
jingchunzhu
parents:
diff changeset
1 import argparse
a38cc72edd75 xena header
jingchunzhu
parents:
diff changeset
2 import string
a38cc72edd75 xena header
jingchunzhu
parents:
diff changeset
3
a38cc72edd75 xena header
jingchunzhu
parents:
diff changeset
4 def main():
a38cc72edd75 xena header
jingchunzhu
parents:
diff changeset
5 parser = argparse.ArgumentParser()
a38cc72edd75 xena header
jingchunzhu
parents:
diff changeset
6 parser.add_argument("output", type=str, help="outputfile")
a38cc72edd75 xena header
jingchunzhu
parents:
diff changeset
7 args = parser.parse_args()
a38cc72edd75 xena header
jingchunzhu
parents:
diff changeset
8
a38cc72edd75 xena header
jingchunzhu
parents:
diff changeset
9 fout= open(args.output,'w')
a38cc72edd75 xena header
jingchunzhu
parents:
diff changeset
10 fout.write("#"+string.join(["sample","chr","start","end","reference","alt","gene","effect","DNA_VAF","RNA_VAF","Amino_Acid_Change"],"\t")+"\n")
a38cc72edd75 xena header
jingchunzhu
parents:
diff changeset
11 fout.close()
a38cc72edd75 xena header
jingchunzhu
parents:
diff changeset
12
a38cc72edd75 xena header
jingchunzhu
parents:
diff changeset
13 if __name__ == '__main__':
a38cc72edd75 xena header
jingchunzhu
parents:
diff changeset
14 main()