public static String samReadName(String name,boolean isPaired){
  if (isPaired && name != null && name.length() > 2 && name.charAt(name.length() - 2) == '/' && (name.endsWith("/1") || name.endsWith("/2"))) {
    return name.substring(0,name.length() - 2);
  }
  return name;
}

public static String samReadName ( String name , boolean isPaired ) { if ( isPaired && name != null && name . length ( ) > 2 && name . charAt ( name . length ( ) - 2 ) == '/' && ( name . endsWith ( "/1" ) || name . endsWith ( "/2" ) ) ) { return name . substring ( 0 , name . length ( ) - 2 ) ; } return name ; }
prune illumina arm marker .
