public static Fastq convert ( final Fastq fastq , final FastqVariant variant ) { if ( fastq == null ) { throw new IllegalArgumentException ( "fastq must not be null" ) ; } if ( variant == null ) { throw new IllegalArgumentException ( "variant must not be null" ) ; } if ( fastq . getVariant ( ) . equals ( variant ) ) { return fastq ; } return new Fastq ( fastq . getDescription ( ) , fastq . getSequence ( ) , convertQualities ( fastq , variant ) , variant ) ; }
Convert the specified FASTQ formatted sequence to the specified FASTQ sequence format variant .