Skip to content

Commit

Permalink
Add java-specific methods where missing.
Browse files Browse the repository at this point in the history
  • Loading branch information
heuermh committed Jan 4, 2019
1 parent 003217b commit a26ee37
Show file tree
Hide file tree
Showing 17 changed files with 508 additions and 219 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class JavaADAMContext(val ac: ADAMContext) extends Serializable {
def getSparkContext: JavaSparkContext = new JavaSparkContext(ac.sc)

/**
* Load alignment records into an AlignmentRecordDataset (java-friendly method).
* (Java-specific) Load alignment records into an AlignmentRecordDataset.
*
* Loads path names ending in:
* * .bam/.cram/.sam as BAM/CRAM/SAM format,
Expand Down Expand Up @@ -79,7 +79,7 @@ class JavaADAMContext(val ac: ADAMContext) extends Serializable {
}

/**
* Load alignment records into an AlignmentRecordDataset (java-friendly method).
* (Java-specific) Load alignment records into an AlignmentRecordDataset.
*
* Loads path names ending in:
* * .bam/.cram/.sam as BAM/CRAM/SAM format,
Expand Down Expand Up @@ -111,7 +111,7 @@ class JavaADAMContext(val ac: ADAMContext) extends Serializable {
}

/**
* Functions like loadBam, but uses BAM index files to look at fewer blocks,
* (Java-specific) Functions like loadBam, but uses BAM index files to look at fewer blocks,
* and only returns records within the specified ReferenceRegions. BAM index file required.
*
* @param pathName The path name to load indexed BAM formatted alignment records from.
Expand All @@ -132,7 +132,7 @@ class JavaADAMContext(val ac: ADAMContext) extends Serializable {
}

/**
* Load nucleotide contig fragments into a NucleotideContigFragmentDataset (java-friendly method).
* (Java-specific) Load nucleotide contig fragments into a NucleotideContigFragmentDataset.
*
* If the path name has a .fa/.fasta extension, load as FASTA format.
* Else, fall back to Parquet + Avro.
Expand All @@ -152,7 +152,7 @@ class JavaADAMContext(val ac: ADAMContext) extends Serializable {
}

/**
* Load fragments into a FragmentDataset (java-friendly method).
* (Java-specific) Load fragments into a FragmentDataset.
*
* Loads path names ending in:
* * .bam/.cram/.sam as BAM/CRAM/SAM format and
Expand All @@ -175,7 +175,7 @@ class JavaADAMContext(val ac: ADAMContext) extends Serializable {
}

/**
* Load fragments into a FragmentDataset (java-friendly method).
* (Java-specific) Load fragments into a FragmentDataset.
*
* Loads path names ending in:
* * .bam/.cram/.sam as BAM/CRAM/SAM format and
Expand All @@ -200,7 +200,7 @@ class JavaADAMContext(val ac: ADAMContext) extends Serializable {
}

/**
* Load features into a FeatureDataset (java-friendly method).
* (Java-specific) Load features into a FeatureDataset.
*
* Loads path names ending in:
* * .bed as BED6/12 format,
Expand All @@ -227,7 +227,7 @@ class JavaADAMContext(val ac: ADAMContext) extends Serializable {
}

/**
* Load features into a FeatureDataset (java-friendly method).
* (Java-specific) Load features into a FeatureDataset.
*
* Loads path names ending in:
* * .bed as BED6/12 format,
Expand Down Expand Up @@ -257,7 +257,7 @@ class JavaADAMContext(val ac: ADAMContext) extends Serializable {
}

/**
* Load features into a FeatureDataset and convert to a CoverageDataset (java-friendly method).
* (Java-specific) Load features into a FeatureDataset and convert to a CoverageDataset.
* Coverage is stored in the score field of Feature.
*
* Loads path names ending in:
Expand Down Expand Up @@ -285,7 +285,7 @@ class JavaADAMContext(val ac: ADAMContext) extends Serializable {
}

/**
* Load features into a FeatureDataset and convert to a CoverageDataset (java-friendly method).
* (Java-specific) Load features into a FeatureDataset and convert to a CoverageDataset.
* Coverage is stored in the score field of Feature.
*
* Loads path names ending in:
Expand Down Expand Up @@ -317,7 +317,7 @@ class JavaADAMContext(val ac: ADAMContext) extends Serializable {
}

/**
* Load genotypes into a GenotypeDataset (java-friendly method).
* (Java-specific) Load genotypes into a GenotypeDataset.
*
* If the path name has a .vcf/.vcf.gz/.vcf.bgzf/.vcf.bgz extension, load as VCF format.
* Else, fall back to Parquet + Avro.
Expand All @@ -334,7 +334,7 @@ class JavaADAMContext(val ac: ADAMContext) extends Serializable {
}

/**
* Load genotypes into a GenotypeDataset (java-friendly method).
* (Java-specific) Load genotypes into a GenotypeDataset.
*
* If the path name has a .vcf/.vcf.gz/.vcf.bgzf/.vcf.bgz extension, load as VCF format.
* Else, fall back to Parquet + Avro.
Expand All @@ -354,7 +354,7 @@ class JavaADAMContext(val ac: ADAMContext) extends Serializable {
}

/**
* Load variants into a VariantDataset (java-friendly method).
* (Java-specific) Load variants into a VariantDataset.
*
* If the path name has a .vcf/.vcf.gz/.vcf.bgzf/.vcf.bgz extension, load as VCF format.
* Else, fall back to Parquet + Avro.
Expand All @@ -370,7 +370,7 @@ class JavaADAMContext(val ac: ADAMContext) extends Serializable {
}

/**
* Load variants into a VariantDataset (java-friendly method).
* (Java-specific) Load variants into a VariantDataset.
*
* If the path name has a .vcf/.vcf.gz/.vcf.bgzf/.vcf.bgz extension, load as VCF format.
* Else, fall back to Parquet + Avro.
Expand All @@ -388,7 +388,7 @@ class JavaADAMContext(val ac: ADAMContext) extends Serializable {
}

/**
* Load reference sequences into a broadcastable ReferenceFile (java-friendly method).
* (Java-specific) Load reference sequences into a broadcastable ReferenceFile.
*
* If the path name has a .2bit extension, loads a 2bit file. Else, uses loadContigFragments
* to load the reference as an RDD, which is then collected to the driver.
Expand All @@ -407,7 +407,7 @@ class JavaADAMContext(val ac: ADAMContext) extends Serializable {
}

/**
* Load reference sequences into a broadcastable ReferenceFile (java-friendly method).
* (Java-specific) Load reference sequences into a broadcastable ReferenceFile.
*
* If the path name has a .2bit extension, loads a 2bit file. Else, uses loadContigFragments
* to load the reference as an RDD, which is then collected to the driver. Uses a
Expand Down
Loading

0 comments on commit a26ee37

Please sign in to comment.