@@ -785,8 +785,8 @@ private static File processAndMergeCSVs(File abCSV, File gdCSV, Logger log) thro
785785
786786 try (PrintWriter writer = PrintWriters .getPrintWriter (output ))
787787 {
788- processCSV (writer , true , abCSV , log , Arrays .asList ("TRA" , "TRB" ));
789- processCSV (writer , false , gdCSV , log , Arrays .asList ("TRD" , "TRG" ));
788+ processCSV (writer , true , abCSV , log , Arrays .asList ("TRA" , "TRB" ), "vdj_t" );
789+ processCSV (writer , false , gdCSV , log , Arrays .asList ("TRD" , "TRG" ), "vdj_t_gd" );
790790 }
791791 catch (IOException e )
792792 {
@@ -796,7 +796,7 @@ private static File processAndMergeCSVs(File abCSV, File gdCSV, Logger log) thro
796796 return output ;
797797 }
798798
799- private static void processCSV (PrintWriter writer , boolean printHeader , File inputCsv , Logger log , List <String > acceptableChains ) throws IOException
799+ private static void processCSV (PrintWriter writer , boolean printHeader , File inputCsv , Logger log , List <String > acceptableChains , String chainType ) throws IOException
800800 {
801801 log .info ("Processing CSV: " + inputCsv .getPath ());
802802 try (BufferedReader reader = Readers .getReader (inputCsv ))
@@ -812,7 +812,7 @@ private static void processCSV(PrintWriter writer, boolean printHeader, File inp
812812 {
813813 if (printHeader )
814814 {
815- writer .println (line );
815+ writer .println (line + " \t chain_type" );
816816 }
817817
818818 continue ;
@@ -888,7 +888,7 @@ else if (uniqueChains.size() == 2)
888888
889889 if (acceptableChains .contains (tokens [5 ]))
890890 {
891- writer .println (StringUtils .join (tokens , "," ));
891+ writer .println (StringUtils .join (tokens , "," ) + " \t " + chainType );
892892 }
893893 }
894894
0 commit comments