-
Notifications
You must be signed in to change notification settings - Fork 308
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
K-mer.scala code #1105
Comments
Hi @Pavan637! What is the content of |
Thanks for replying... `import org.bdgenomics.adam.rdd.ADAMContext val ac = new ADAMContext(sc) // Generate, count and sort 21-mers // Print the top 10 most common 21-mers |
Thank you for reporting this, @Pavan637. This issue was closed when I merged the pull request. If the change does not work for you, please reopen this issue. |
K-mer.scala code given at https://github.com/bigdatagenomics/adam is giving me errors.
I ran that code in two ways "
I am getting following errors
$scalac kmer.scala
kmer.scala:5: error: expected class or object definition
val ac = new ADAMContext(sc)
^
kmer.scala:7: error: expected class or object definition
val reads = ac.loadAlignments(
^
kmer.scala:19: error: expected class or object definition
val kmers =
^
kmer.scala:26: error: expected class or object definition
kmers.take(10).foreach(println)
^
four errors found
And when i run on spark "adam-shell -i kmer.scala". I am getting following errors
:19: error: object rdd is not a member of package org.bdgenomics.adam
import org.bdgenomics.adam.rdd.ADAMContext
^
:19: error: object rdd is not a member of package org.bdgenomics.adam
import org.bdgenomics.adam.rdd.ADAMContext._
^
:19: error: object projections is not a member of package org.bdgenomics.adam
import org.bdgenomics.adam.projections.{ AlignmentRecordField, Projection }
^
:21: error: not found: type ADAMContext
val ac = new ADAMContext(sc)
^
:19: error: not found: value ac
val reads = ac.loadAlignments(
^
:20: error: not found: value reads
reads
^
:1: error: illegal start of definition
.flatMap(.getSequence.sliding(21).map(k => (k, 1L)))
^
:1: error: illegal start of definition
.reduceByKey( + )
^
:1: error: illegal start of definition
.map(.swap)
^
:1: error: illegal start of definition
.sortByKey(ascending = false)
^
:20: error: not found: value kmers
kmers.take(10).foreach(println)
^
Kindly help me to solve the issues.
Regards
Pavan
The text was updated successfully, but these errors were encountered: