changeset 7:a7fe6f068f83 draft

Uploaded
author davidvanzessen
date Wed, 08 Jan 2014 05:44:58 -0500
parents a43100e5d032
children 16dc80341862
files imgtconvert.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/imgtconvert.py	Tue Dec 10 07:55:34 2013 -0500
+++ b/imgtconvert.py	Wed Jan 08 05:44:58 2014 -0500
@@ -132,7 +132,7 @@
 tmp = tmp.replace("null", "Out-of-frame")
 tmp = tmp.replace("out-of-frame", "Out-of-frame")
 outFrame["VDJ Frame"] = tmp
-outFrame["CDR3 Length"] = outFrame["CDR3 Seq DNA"].map(str).map(len)
+outFrame["CDR3 Length DNA"] = outFrame["CDR3 Seq DNA"].map(str).map(len)
 safeLength = lambda x: len(x) if type(x) == str else 0
 outFrame = outFrame[(outFrame["CDR3 Seq DNA"].map(safeLength) > 0) & (outFrame["Top V Gene"] != "NA") & (outFrame["Top D Gene"] != "NA") & (outFrame["Top J Gene"] != "NA")] #filter out weird rows?
-outFrame.to_csv(outFile, sep="\t", index=False)
\ No newline at end of file
+outFrame.to_csv(outFile, sep="\t", index=False, index_label="index")
\ No newline at end of file