All Downloads are FREE. Search and download functionalities are using the official Maven repository.

picard.illumina.parser.fakers.PosFileFaker Maven / Gradle / Ivy

Go to download

A set of command line tools (in Java) for manipulating high-throughput sequencing (HTS) data and formats such as SAM/BAM/CRAM and VCF.

There is a newer version: 3.2.0
Show newest version
package picard.illumina.parser.fakers;

import java.nio.ByteBuffer;

/**
 * Created by jcarey on 3/13/14.
 */
public class PosFileFaker extends FileFaker {
    private static final String POS_FILE_STRING = "102.0\t303.3\n";

    @Override
    protected void fakeFile(final ByteBuffer buffer) {
        buffer.put(POS_FILE_STRING.getBytes());
    }

    @Override
    protected boolean addLeadingZeros() {
        return false;
    }

    @Override
    protected int bufferSize() {
        return POS_FILE_STRING.getBytes().length;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy