Commit f5280322 authored by bow's avatar bow
Browse files

Rename ReferenceRecord.name -> ReferenceRecord.refName

parent 6689ded3
......@@ -27,14 +27,14 @@ import org.bson.types.ObjectId
* @param refId Database IDs.
* @param contigs Record of all contigs / chromosomes in this reference sequence.
* @param combinedMd5 MD5 checksum of the concatenated string of all contig MD5 checksums, sorted alphabetically.
* @param name Reference sequence name.
* @param refName Reference sequence name.
* @param creationTimeUtc UTC time when the reference record was created.
*/
case class ReferenceRecord(
@Key("_id") refId: ObjectId,
contigs: Seq[ReferenceContigRecord],
combinedMd5: String,
name: Option[String] = None,
refName: Option[String] = None,
species: Option[String] = None,
creationTimeUtc: Option[Date] = None)
......
......@@ -58,7 +58,7 @@ class GentrapV04InputProcessor(protected val mongo: MongodbAccessObject)
combinedMd5 = calcMd5(contigs.map(_.md5).sorted),
contigs = contigs,
species = (refJson \ "species").extractOpt[String],
name = (refJson \ "name").extractOpt[String],
refName = (refJson \ "name").extractOpt[String],
creationTimeUtc = Option(getUtcTimeNow))
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment