Codota Logo
VariantVcfDataWriter.buildAlleles
Code IndexAdd Codota to your IDE (free)

How to use
buildAlleles
method
in
org.opencb.opencga.storage.core.variant.io.VariantVcfDataWriter

Best Java code snippets using org.opencb.opencga.storage.core.variant.io.VariantVcfDataWriter.buildAlleles (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Gson g =
  • Codota Iconnew Gson()
  • Codota IconGsonBuilder gsonBuilder;gsonBuilder.create()
  • Codota Iconnew GsonBuilder().create()
  • Smart code suggestions by Codota
}
origin: opencb/opencga

  allelesArray = originalAlleles;
} else {
  allelesArray = buildAlleles(variant, adjustedRange);
origin: opencb/opencga

@Test
public void buildAlleles_SecAlt_INDEL() throws Exception {
  StudyConfiguration sc = new StudyConfiguration(1, "1");
  VariantVcfDataWriter dw = new VariantVcfDataWriter(sc, null, null, null);
  Variant variant = createVariantSecAlt("1:123:A:C", "1:122:GGT:-");
  List<String> alles = dw.buildAlleles(variant, new ImmutablePair<>(121, 124));
  assertEquals("Missing alleles", 3, alles.size());
  assertEquals("Ref allele not correctly adjusted", "NNAN", alles.get(0));
  assertEquals("Ref allele not correctly adjusted", "NNCN", alles.get(1));
  assertEquals("Ref allele not correctly adjusted", "N", alles.get(2));
}
origin: opencb/opencga

@Test
public void buildAlleles_SecAlt_MNV() throws Exception {
  StudyConfiguration sc = new StudyConfiguration(1, "1");
  VariantVcfDataWriter dw = new VariantVcfDataWriter(sc, null, null, null);
  Variant variant = createVariantSecAlt("1:123:A:C", "1:122:GG:TT");
  List<String> alles = dw.buildAlleles(variant, new ImmutablePair<>(122, 123));
  assertEquals("Missing alleles", 3, alles.size());
  assertEquals("Ref allele not correctly adjusted", "NA", alles.get(0));
  assertEquals("Ref allele not correctly adjusted", "NC", alles.get(1));
  assertEquals("Ref allele not correctly adjusted", "TT", alles.get(2));
}
org.opencb.opencga.storage.core.variant.ioVariantVcfDataWriterbuildAlleles

Popular methods of VariantVcfDataWriter

  • <init>
  • adjustedVariantStart
    Adjust start/end if a reference base is required due to an empty allele. All variants are checked du
  • addAnnotationInfo
  • addAnnotations
  • addCohortInfo
  • addStats
  • buildAllele
  • close
  • convertVariantToVariantContext
    Convert org.opencb.biodata.models.variant.Variant into a htsjdk.variant.variantcontext.VariantContex
  • getOri
  • getOriginalAlleleIndex
  • getOriginalAlleles
    Assumes that ori is in the form "POS:REF:ALT_0(,ALT_N)*:ALT_IDX". ALT_N is the n-th allele if this i
  • getOriginalAlleleIndex,
  • getOriginalAlleles,
  • getReferenceBase,
  • getSamples,
  • htsExport,
  • open,
  • post,
  • pre,
  • vcfExport

Popular in Java

  • Reading from database using SQL prepared statement
  • notifyDataSetChanged (ArrayAdapter)
  • startActivity (Activity)
  • onCreateOptionsMenu (Activity)
  • FileInputStream (java.io)
    A FileInputStream obtains input bytes from a file in a file system. What files are available depends
  • FileOutputStream (java.io)
    A file output stream is an output stream for writing data to aFile or to a FileDescriptor. Whether
  • Timer (java.util)
    A facility for threads to schedule tasks for future execution in a background thread. Tasks may be s
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • JCheckBox (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now