# HG changeset patch
# User davidvanzessen
# Date 1496144415 14400
# Node ID ba3220f921af7bc6a9c18c7ed7582d9cb1fdc78b
# Parent  3be28ac82909d76f244301693e0bb06bc1a4697e
Uploaded

diff -r 3be28ac82909 -r ba3220f921af imgt_loader.r
--- a/imgt_loader.r	Wed May 24 04:26:04 2017 -0400
+++ b/imgt_loader.r	Tue May 30 07:40:15 2017 -0400
@@ -68,29 +68,29 @@
 out[,"VDJ Frame"] = as.character(out[,"VDJ Frame"])
 
 fltr = out[,"VDJ Frame"] == "in-frame"
-if(any(fltr)){
+if(any(fltr, na.rm = T)){
 	out[fltr, "VDJ Frame"] = "In-frame"
 }
 
 fltr = out[,"VDJ Frame"] == "null"
-if(any(fltr)){
+if(any(fltr, na.rm = T)){
 	out[fltr, "VDJ Frame"] = "Out-of-frame"
 }
 
 fltr = out[,"VDJ Frame"] == "out-of-frame"
-if(any(fltr)){
+if(any(fltr, na.rm = T)){
 	out[fltr, "VDJ Frame"] = "Out-of-frame"
 }
 
 fltr = out[,"VDJ Frame"] == ""
-if(any(fltr)){
+if(any(fltr, na.rm = T)){
 	out[fltr, "VDJ Frame"] = "Out-of-frame"
 }
 
 for(col in c('Top V Gene','Top D Gene','Top J Gene')){
 	out[,col] = as.character(out[,col])
 	fltr = out[,col] == ""
-	if(any(fltr)){
+	if(any(fltr, na.rm = T)){
 		out[fltr,col] = "NA"
 	}
 }
diff -r 3be28ac82909 -r ba3220f921af shm_csr.xml