Here you can find the source of sanitizeSAMHeader(String samString)
Parameter | Description |
---|---|
samString | the full SAM string |
public static String sanitizeSAMHeader(String samString)
//package com.java2s; public class Main { /**/* w w w .ja va 2 s . com*/ * Takes a SAM string and strips out header fields that typically change from run to run. * @param samString the full SAM string * @return the sanitized SAM */ public static String sanitizeSAMHeader(String samString) { return samString.replaceAll("@PG.*\n", "").replaceAll("@CO.*\n", ""); } }