Java String Sanitize sanitizeSAMHeader(String samString)

Here you can find the source of sanitizeSAMHeader(String samString)

Description

Takes a SAM string and strips out header fields that typically change from run to run.

License

Open Source License

Parameter

Parameter Description
samString the full SAM string

Return

the sanitized SAM

Declaration

public static String sanitizeSAMHeader(String samString) 

Method Source Code

//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", "");
    }
}

Related

  1. sanitizePrimitives(Class clazz)
  2. sanitizeProcOrFuncName(String src)
  3. sanitizeProjectName(final String projectName)
  4. sanitizeRefName(String refName)
  5. sanitizeResource(String resource)
  6. sanitizeSingleQuotesInAlbumItemValues(String value)
  7. sanitizeString(final String s)
  8. sanitizeString(String dirtyString)
  9. sanitizeString(String input)