Package picard.fingerprint
Class FingerprintUtils
java.lang.Object
picard.fingerprint.FingerprintUtils
A set of utilities used in the fingerprinting environment
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA class that holds VariantContexts sorted by genomic position -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateVCSetFromFingerprint(Fingerprint fingerPrint, htsjdk.samtools.reference.ReferenceSequenceFile reference, String sample, boolean representativeOnly) A utility function that takes a fingerprint and returns a VariantContextSet with variants representing the haplotypes in the fingerprintstatic voidwriteFingerPrint(Fingerprint fingerprint, File outputFile, File referenceSequenceFileName, String sample, String source, boolean representativeOnly) A function that takes a Fingerprint and writes it as a VCF to a file
-
Constructor Details
-
FingerprintUtils
public FingerprintUtils()
-
-
Method Details
-
writeFingerPrint
public static void writeFingerPrint(Fingerprint fingerprint, File outputFile, File referenceSequenceFileName, String sample, String source, boolean representativeOnly) throws IOException A function that takes a Fingerprint and writes it as a VCF to a file- Parameters:
fingerprint- the fingerprint to writeoutputFile- the file to write toreferenceSequenceFileName- the reference sequence (file)sample- the sample name to use in the vcfsource- a "source" comment to use in the VCFrepresentativeOnly- whether to extract only the representative snps- Throws:
IOException- if two snps in the haplotype map have the same "name"
-
createVCSetFromFingerprint
public static FingerprintUtils.VariantContextSet createVCSetFromFingerprint(Fingerprint fingerPrint, htsjdk.samtools.reference.ReferenceSequenceFile reference, String sample, boolean representativeOnly) A utility function that takes a fingerprint and returns a VariantContextSet with variants representing the haplotypes in the fingerprint- Parameters:
fingerPrint- A fingerprintreference- A reference sequence that will be used to create the VariantContextssample- A sample name that will be used for the genotype fieldrepresentativeOnly- A boolean specifying whether to create a VC only for the representative Snp (or for all of them if false)- Returns:
- VariantContextSet with variants representing the haplotypes in the fingerprint
-