annotate xenaHeader.py @ 53:7de3db823f90

fix
author jingchunzhu
date Thu, 17 Sep 2015 15:38:53 -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()