本文整理了Java中org.broadinstitute.gatk.utils.Utils.arrayFromArrayWithLength()
方法的一些代码示例,展示了Utils.arrayFromArrayWithLength()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Utils.arrayFromArrayWithLength()
方法的具体详情如下:
包路径:org.broadinstitute.gatk.utils.Utils
类名称:Utils
方法名:arrayFromArrayWithLength
暂无
代码示例来源:origin: broadgsa/gatk
public static GATKSAMRecord createArtificialRead(Cigar cigar) {
int length = cigar.getReadLength();
byte [] base = {'A'};
byte [] qual = {30};
byte [] bases = Utils.arrayFromArrayWithLength(base, length);
byte [] quals = Utils.arrayFromArrayWithLength(qual, length);
SAMFileHeader header = ArtificialSAMUtils.createArtificialSamHeader();
return ArtificialSAMUtils.createArtificialRead(header, "default_read", 0, 10000, bases, quals, cigar.toString());
}
代码示例来源:origin: broadgsa/gatk
/**
* Make a read fom the CIGAR
*
* @param cigar the CIGAR
* @param lengthChange change in read length relative the CIGAR length
* @return artificial read
*/
public static GATKSAMRecord makeReadFromCigar(Cigar cigar, int lengthChange) {
int readLength = cigar.getReadLength();
if ( readLength >= -lengthChange ) {
readLength += lengthChange;
}
return ArtificialSAMUtils.createArtificialRead(Utils.arrayFromArrayWithLength(BASES, readLength), Utils.arrayFromArrayWithLength(QUALS, readLength), cigar.toString());
}
内容来源于网络,如有侵权,请联系作者删除!