Repository navigation
FAQ (Frequently Asked Questions)
Outlining some questions here, that we've heard people ask before -- feel free to add an answer, or add more questions.
ADAM is a project to rewrite common or useful bioinformatics methods, algorithms, and tools as transformations that can be run efficiently on Apache Spark.
It also contains definitions of data models for standard bioinformatics and genomics data types (reads, variants, genotypes, genome annotations) in a language called Avro; these data models are used in ADAM, but can also be used to generate serialization and de-serialization methods and classes in other programming languages, making it easy to exchange genomic data and rendering the definition of new file formats unnecessary.
If you're using ADAM as a library, probably the easiest way to "install ADAM" is by referencing the artifacts in Maven Central and importing them using a Maven-compatible dependency management mechanism (e.g. Maven or Ivy).
If you want to extend or incorporate ADAM into a custom project, or write a new ADAM module or transformation, you should start by cloning the primary ADAM repository.
No! But it helps.
Spark itself has the ability to launch in a local mode, which runs the Spark scheduler and executor in a single process on your local machine. ADAM transformations can run inside this Spark local mode perfectly fine.
However, for large files or processing jobs that perform significant computations, running ADAM on a Spark cluster with more than one node will help (this is the whole point of Spark, after all)! The latest Spark documentation should have information on launching a Spark cluster in a cloud environment e.g. EC2.
The Spark EC2 scripts launch a Spark cluster in EC2 with HDFS DataNodes already running on the same nodes as the Spark workers themselves. Spark itself bundles the Hadoop client libraries, which means that storing your data in HDFS and referencing it when loading RDDs to be transformed using Spark or ADAM transformations should take advantage of the data locality and parallelism that HDFS provides. Most Spark installations that we've seen in industry or academic settings have also included an HDFS component.
However, you don't technically need HDFS running alongside Spark -- the Hadoop client libraries can load data from s3:-schemed URLs, and the ADAM team has been experimenting with Spark-based solutions for parallel loading of Parquet files from S3 or other object stores directly. Contact the adam-developers mailing list if you'd like more information on this latter, experimental project.
ADAM supports loading Parquet-formatted files (containing Avro-schemed data model objects) directly; it also, through the use of several open third-party parsing formats, supports loading data directly from several common bioinformatics formats, although the performance of these formats will often be worse relative to Parquet.
An (incomplete) list of the currently-supported file formats is:
- SAM/BAM files for unaligned and aligned read data
- FASTA and FASTQ files for read and sequence data
- VCF files for variants and genotypes
- BED, GTF, and GFF-like files for genomic and sequence annotations
Adding a new file format is easy, please let the dev team know if you'd like to see additional file formats supported natively.
(insert dependency figure here)
We have a wiki page explaining the design options available when choosing a genomic coordinate convention, and which ones we've chosen. The tl;dr is "we use 0-based residue coordinates with half-open intervals."
The ADAM team is available by email through the adam-developers Google Group. Several of us also hang out in IRC in the #adamdev channel.