SlideShare uma empresa Scribd logo
1 de 13
Baixar para ler offline
ADAM

https://github.com/massie/adam
Matt Massie
University of California, Berkeley
massie@berkeley.edu

Saturday, November 2, 13
SAM

BAM

ADAM

Sequence Alignment Map (SAM)
Binary Alignment Map (BAM)
Avro Data Alignment Map (ADAM)

Saturday, November 2, 13
Pipeline Issues Today:
Time and Scale
• The time to go from reads to answers is
too long

• Processing thousands of BAM files for
statistical analysis doesn’t scale

Saturday, November 2, 13
ADAM:
Speed and Scale
• Read BAM once, perform transformations
(e.g. sort, mark duplicates, BQSR) in
distributed memory, write the analysisready ADAM file once

• Use a distribute filesystem (HDFS), a fast
execution system (Spark) and columnar
data formats (Parquet) to scale

Saturday, November 2, 13
Unlocking Genomic Data
Shark (SQL)
Hadoop
M/R

Spark

Impala (SQL)

ADAM ADAM ADAM ADAM ADAM
ADAM ADAM ADAM ADAM ADAM
ADAM ADAM ADAM ADAM ADAM ADAM
Hadoop Distributed File System (HDFS)

Local Filesystem
ADAM ADAM
ADAM
ADAM
Saturday, November 2, 13

BAM
record ADAMRecord {
union
union
union
union
union
union
union
union
union
union
union

{
{
{
{
{
{
{
{
{
{
{

null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,

string } referenceName = null;
int } referenceId = null;
long } start = null;
int } mapq = null;
string } readName = null;
string } sequence = null;
string } mateReference = null;
long } mateAlignmentStart = null;
string } cigar = null;
string } qual = null;
string } recordGroupId = null;

union
union
union
union
union
union
union
union
union
union
union

{
{
{
{
{
{
{
{
{
{
{

boolean,
boolean,
boolean,
boolean,
boolean,
boolean,
boolean,
boolean,
boolean,
boolean,
boolean,

null
null
null
null
null
null
null
null
null
null
null

}
}
}
}
}
}
}
}
}
}
}

http://avro.apache.org/

readPaired = false;
properPair = false;
readMapped = false;
mateMapped = false;
readNegativeStrand = false;
mateNegativeStrand = false;
firstOfPair = false;
secondOfPair = false;
primaryAlignment = false;
failedVendorQualityChecks = false;
duplicateRead = false;

union { null, string } mismatchingPositions = null;
union { null, string } attributes = null;
union
union
union
union
union
union
union
union
union
union

}

{
{
{
{
{
{
{
{
{
{

null,
null,
null,
null,
null,
null,
null,
null,
null,
null,

string } recordGroupSequencingCenter = null;
string } recordGroupDescription = null;
long } recordGroupRunDateEpoch = null;
string } recordGroupFlowOrder = null;
string } recordGroupKeySequence = null;
string } recordGroupLibrary = null;
int } recordGroupPredictedMedianInsertSize = null;
string } recordGroupPlatform = null;
string } recordGroupPlatformUnit = null;
string } recordGroupSample = null;

union { null, int } mateReferenceId = null;

Saturday, November 2, 13
Parquet
http://parquet.io

Column-oriented layout
Row-oriented layout

https://blog.twitter.com/2013/dremel-made-simple-with-parquet
Saturday, November 2, 13
Genomic Data Example
chrom20 TCGA

4M

chrom20 GAAT

4M1D

chrom20 CCGAT

5M

Column Oriented
chrom20 chrom20 chrom20

TCGA

GAAT

CCGAT

4M

4M1D

5M

Row Oriented
chrom20

Saturday, November 2, 13

TCGA

4M

chrom20

GAAT

4M1D

chrom20 CCGAT

5M
http://spark.incubator.apache.org/

Saturday, November 2, 13
Low-Coverage BAM
Experiment
• 14GB Low-coverage BAM with 145M reads
• 10-node ec2 cluster m2.4xlarge
• Reduced to 13GB with ADAM
• Conversion/upload to HDFS 22mins
• Sorted in 7minutes
Saturday, November 2, 13
High-Coverage BAM
Experiment
• Input: 237GB NA12878- high coverage,
PCR free, whole-genome BAM

• Conversion took 4hrs on ec2 m2.4xlarge
(8cpu, 68.4gb mem)

• Output size: 237GB BAM reduced to
212GB ADAM

Saturday, November 2, 13
Current Features
•
•
•
•
•

Saturday, November 2, 13

Convert BAM to ADAM (read-oriented)
Sort an ADAM file by reference
Generate ADAMPileups
Print mpileup output
Very soon ADAM will be able to mark duplicates
(initial benchmarks look good)
In progress...
•

Frank is working on a distributed variant caller (https://
github.com/fnothaft/avocado), local realignment, adam2bam

•

Chris Hartl is integrating ADAM with GATK (https://
github.com/chartl/GAParquet) DiagnoseTargets, adding new
VCF formats to ADAM, BQSR

•

Christos Kozanitis has been working on Shark and Impala
integration for ad-hoc SQL read queries

•

Collaborations with Mt. Sinai, GenomeBridge and the Broad
Institute who are interested in using ADAM

Saturday, November 2, 13

Mais conteúdo relacionado

Mais procurados

Mais procurados (8)

Apache spark on planet scale
Apache spark on planet scaleApache spark on planet scale
Apache spark on planet scale
 
PostgreSql query planning and tuning
PostgreSql query planning and tuningPostgreSql query planning and tuning
PostgreSql query planning and tuning
 
Introduction to R and R Studio
Introduction to R and R StudioIntroduction to R and R Studio
Introduction to R and R Studio
 
Backup recovery with PostgreSQL
Backup recovery with PostgreSQLBackup recovery with PostgreSQL
Backup recovery with PostgreSQL
 
Introduction to Hadoop - FinistJug
Introduction to Hadoop - FinistJugIntroduction to Hadoop - FinistJug
Introduction to Hadoop - FinistJug
 
PostgreSQL, the big the fast and the (NOSQL on) Acid
PostgreSQL, the big the fast and the (NOSQL on) AcidPostgreSQL, the big the fast and the (NOSQL on) Acid
PostgreSQL, the big the fast and the (NOSQL on) Acid
 
Map Reduce Execution Architecture
Map Reduce Execution Architecture Map Reduce Execution Architecture
Map Reduce Execution Architecture
 
PostgreSQL - backup and recovery with large databases
PostgreSQL - backup and recovery with large databasesPostgreSQL - backup and recovery with large databases
PostgreSQL - backup and recovery with large databases
 

Semelhante a ADAM

Riak intro to..
Riak intro to..Riak intro to..
Riak intro to..
Adron Hall
 
Consideration for Building a Private Cloud
Consideration for Building a Private CloudConsideration for Building a Private Cloud
Consideration for Building a Private Cloud
OpenStack Foundation
 

Semelhante a ADAM (20)

Ruby 2.0 / Rails 4.0, A selection of new features.
Ruby 2.0 / Rails 4.0, A selection of new features.Ruby 2.0 / Rails 4.0, A selection of new features.
Ruby 2.0 / Rails 4.0, A selection of new features.
 
Basics of Metaprogramming in Ruby
Basics of Metaprogramming in RubyBasics of Metaprogramming in Ruby
Basics of Metaprogramming in Ruby
 
Symfony2 and MongoDB - MidwestPHP 2013
Symfony2 and MongoDB - MidwestPHP 2013   Symfony2 and MongoDB - MidwestPHP 2013
Symfony2 and MongoDB - MidwestPHP 2013
 
StORM preview
StORM previewStORM preview
StORM preview
 
Riak intro to..
Riak intro to..Riak intro to..
Riak intro to..
 
Why Spark Is the Next Top (Compute) Model
Why Spark Is the Next Top (Compute) ModelWhy Spark Is the Next Top (Compute) Model
Why Spark Is the Next Top (Compute) Model
 
Cloudera Impala - HUG Karlsruhe, July 04, 2013
Cloudera Impala - HUG Karlsruhe, July 04, 2013Cloudera Impala - HUG Karlsruhe, July 04, 2013
Cloudera Impala - HUG Karlsruhe, July 04, 2013
 
Consideration for Building a Private Cloud
Consideration for Building a Private CloudConsideration for Building a Private Cloud
Consideration for Building a Private Cloud
 
Tech Talk: RocksDB Slides by Dhruba Borthakur & Haobo Xu of Facebook
Tech Talk: RocksDB Slides by Dhruba Borthakur & Haobo Xu of FacebookTech Talk: RocksDB Slides by Dhruba Borthakur & Haobo Xu of Facebook
Tech Talk: RocksDB Slides by Dhruba Borthakur & Haobo Xu of Facebook
 
Regex Considered Harmful: Use Rosie Pattern Language Instead
Regex Considered Harmful: Use Rosie Pattern Language InsteadRegex Considered Harmful: Use Rosie Pattern Language Instead
Regex Considered Harmful: Use Rosie Pattern Language Instead
 
X$Tables And Sga Scanner, DOAG2009
X$Tables And Sga Scanner, DOAG2009X$Tables And Sga Scanner, DOAG2009
X$Tables And Sga Scanner, DOAG2009
 
Incubating Apache Hivemall
Incubating Apache HivemallIncubating Apache Hivemall
Incubating Apache Hivemall
 
The WordPress Hacker's Guide to the \Galaxy() [@MidwestPHP]
The WordPress Hacker's Guide to the \Galaxy() [@MidwestPHP]The WordPress Hacker's Guide to the \Galaxy() [@MidwestPHP]
The WordPress Hacker's Guide to the \Galaxy() [@MidwestPHP]
 
The WordPress Hacker's Guide to the \Galaxy() [@Baltimore PHP]
The WordPress Hacker's Guide to the \Galaxy() [@Baltimore PHP]The WordPress Hacker's Guide to the \Galaxy() [@Baltimore PHP]
The WordPress Hacker's Guide to the \Galaxy() [@Baltimore PHP]
 
Wphackergalaxy
WphackergalaxyWphackergalaxy
Wphackergalaxy
 
Continuous Delivery at Netflix
Continuous Delivery at NetflixContinuous Delivery at Netflix
Continuous Delivery at Netflix
 
From DataFrames to Tungsten: A Peek into Spark's Future @ Spark Summit San Fr...
From DataFrames to Tungsten: A Peek into Spark's Future @ Spark Summit San Fr...From DataFrames to Tungsten: A Peek into Spark's Future @ Spark Summit San Fr...
From DataFrames to Tungsten: A Peek into Spark's Future @ Spark Summit San Fr...
 
From DataFrames to Tungsten: A Peek into Spark's Future-(Reynold Xin, Databri...
From DataFrames to Tungsten: A Peek into Spark's Future-(Reynold Xin, Databri...From DataFrames to Tungsten: A Peek into Spark's Future-(Reynold Xin, Databri...
From DataFrames to Tungsten: A Peek into Spark's Future-(Reynold Xin, Databri...
 
Linked Data on Rails
Linked Data on RailsLinked Data on Rails
Linked Data on Rails
 
Hadoop
HadoopHadoop
Hadoop
 

Último

Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Último (20)

Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 

ADAM

  • 1. ADAM https://github.com/massie/adam Matt Massie University of California, Berkeley massie@berkeley.edu Saturday, November 2, 13
  • 2. SAM BAM ADAM Sequence Alignment Map (SAM) Binary Alignment Map (BAM) Avro Data Alignment Map (ADAM) Saturday, November 2, 13
  • 3. Pipeline Issues Today: Time and Scale • The time to go from reads to answers is too long • Processing thousands of BAM files for statistical analysis doesn’t scale Saturday, November 2, 13
  • 4. ADAM: Speed and Scale • Read BAM once, perform transformations (e.g. sort, mark duplicates, BQSR) in distributed memory, write the analysisready ADAM file once • Use a distribute filesystem (HDFS), a fast execution system (Spark) and columnar data formats (Parquet) to scale Saturday, November 2, 13
  • 5. Unlocking Genomic Data Shark (SQL) Hadoop M/R Spark Impala (SQL) ADAM ADAM ADAM ADAM ADAM ADAM ADAM ADAM ADAM ADAM ADAM ADAM ADAM ADAM ADAM ADAM Hadoop Distributed File System (HDFS) Local Filesystem ADAM ADAM ADAM ADAM Saturday, November 2, 13 BAM
  • 6. record ADAMRecord { union union union union union union union union union union union { { { { { { { { { { { null, null, null, null, null, null, null, null, null, null, null, string } referenceName = null; int } referenceId = null; long } start = null; int } mapq = null; string } readName = null; string } sequence = null; string } mateReference = null; long } mateAlignmentStart = null; string } cigar = null; string } qual = null; string } recordGroupId = null; union union union union union union union union union union union { { { { { { { { { { { boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean, null null null null null null null null null null null } } } } } } } } } } } http://avro.apache.org/ readPaired = false; properPair = false; readMapped = false; mateMapped = false; readNegativeStrand = false; mateNegativeStrand = false; firstOfPair = false; secondOfPair = false; primaryAlignment = false; failedVendorQualityChecks = false; duplicateRead = false; union { null, string } mismatchingPositions = null; union { null, string } attributes = null; union union union union union union union union union union } { { { { { { { { { { null, null, null, null, null, null, null, null, null, null, string } recordGroupSequencingCenter = null; string } recordGroupDescription = null; long } recordGroupRunDateEpoch = null; string } recordGroupFlowOrder = null; string } recordGroupKeySequence = null; string } recordGroupLibrary = null; int } recordGroupPredictedMedianInsertSize = null; string } recordGroupPlatform = null; string } recordGroupPlatformUnit = null; string } recordGroupSample = null; union { null, int } mateReferenceId = null; Saturday, November 2, 13
  • 8. Genomic Data Example chrom20 TCGA 4M chrom20 GAAT 4M1D chrom20 CCGAT 5M Column Oriented chrom20 chrom20 chrom20 TCGA GAAT CCGAT 4M 4M1D 5M Row Oriented chrom20 Saturday, November 2, 13 TCGA 4M chrom20 GAAT 4M1D chrom20 CCGAT 5M
  • 10. Low-Coverage BAM Experiment • 14GB Low-coverage BAM with 145M reads • 10-node ec2 cluster m2.4xlarge • Reduced to 13GB with ADAM • Conversion/upload to HDFS 22mins • Sorted in 7minutes Saturday, November 2, 13
  • 11. High-Coverage BAM Experiment • Input: 237GB NA12878- high coverage, PCR free, whole-genome BAM • Conversion took 4hrs on ec2 m2.4xlarge (8cpu, 68.4gb mem) • Output size: 237GB BAM reduced to 212GB ADAM Saturday, November 2, 13
  • 12. Current Features • • • • • Saturday, November 2, 13 Convert BAM to ADAM (read-oriented) Sort an ADAM file by reference Generate ADAMPileups Print mpileup output Very soon ADAM will be able to mark duplicates (initial benchmarks look good)
  • 13. In progress... • Frank is working on a distributed variant caller (https:// github.com/fnothaft/avocado), local realignment, adam2bam • Chris Hartl is integrating ADAM with GATK (https:// github.com/chartl/GAParquet) DiagnoseTargets, adding new VCF formats to ADAM, BQSR • Christos Kozanitis has been working on Shark and Impala integration for ad-hoc SQL read queries • Collaborations with Mt. Sinai, GenomeBridge and the Broad Institute who are interested in using ADAM Saturday, November 2, 13