addstudytodatabase module

class addstudytodatabase.AddStudyToDatabase

Bases: Resource

methods: ClassVar[Optional[Collection[str]]] = {'POST'}

The methods this view is registered for. Uses the same default (["GET", "HEAD", "OPTIONS"]) as route and add_url_rule by default.

post()

takes a post-curation study and adds it to database for downstream retrieval

Parameters:
  • provided_author_name (str) – provided author name. will be coerced to authorID

  • sample_metadata_sheet_panda (json) – records representation of study metadata

Returns:

  • author_id (str) – provided_author_name without spaces and lowercased

  • study_id (float) – millisecond time of submission using time.time()

Examples

{

“provided_author_name”: “Parker Bremer”, “sample_metadata_sheet_panda”:[{“species.0”: “Homo sapiens”, “organ.0”: “Kidney”, “cellLine.0”: “not available”, “cellCount.0”: “not available”, “mass.0”: “5.0”, “massUnit.0”: “milligram”, “drugName.0”: “control”, “drugDoseMagnitude.0”: “not available”, “drugDoseUnit.0”: “not available”}, {“species.0”: “Homo sapiens”, “organ.0”: “Kidney”, “cellLine.0”: “not available”, “cellCount.0”: “not available”, “mass.0”: “5.0”, “massUnit.0”: “milligram”, “drugName.0”: “control”, “drugDoseMagnitude.0”: “not available”, “drugDoseUnit.0”: “not available”}, {“species.0”: “Homo sapiens”, “organ.0”: “Kidney”, “cellLine.0”: “not available”, “cellCount.0”: “not available”, “mass.0”: “5.0”, “massUnit.0”: “milligram”, “drugName.0”: “control”, “drugDoseMagnitude.0”: “not available”, “drugDoseUnit.0”: “not available”}, {“species.0”: “Homo sapiens”, “organ.0”: “Kidney”, “cellLine.0”: “not available”, “cellCount.0”: “not available”, “mass.0”: “5.0”, “massUnit.0”: “milligram”, “drugName.0”: “KERENDIA”, “drugDoseMagnitude.0”: “20.0”, “drugDoseUnit.0”: “milligram”}, {“species.0”: “Homo sapiens”, “organ.0”: “Kidney”, “cellLine.0”: “not available”, “cellCount.0”: “not available”, “mass.0”: “5.0”, “massUnit.0”: “milligram”, “drugName.0”: “KERENDIA”, “drugDoseMagnitude.0”: “20.0”, “drugDoseUnit.0”: “milligram”}, {“species.0”: “Homo sapiens”, “organ.0”: “Kidney”, “cellLine.0”: “not available”, “cellCount.0”: “not available”, “mass.0”: “5.0”, “massUnit.0”: “milligram”, “drugName.0”: “KERENDIA”, “drugDoseMagnitude.0”: “20.0”, “drugDoseUnit.0”: “milligram”}, {“species.0”: “Homo sapiens”, “organ.0”: “not available”, “cellLine.0”: “HEK293”, “cellCount.0”: “1000000.0”, “mass.0”: “not available”, “massUnit.0”: “not available”, “drugName.0”: “control”, “drugDoseMagnitude.0”: “not available”, “drugDoseUnit.0”: “not available”}, {“species.0”: “Homo sapiens”, “organ.0”: “not available”, “cellLine.0”: “HEK293”, “cellCount.0”: “1000000.0”, “mass.0”: “not available”, “massUnit.0”: “not available”, “drugName.0”: “control”, “drugDoseMagnitude.0”: “not available”, “drugDoseUnit.0”: “not available”}, {“species.0”: “Homo sapiens”, “organ.0”: “not available”, “cellLine.0”: “HEK293”, “cellCount.0”: “1000000.0”, “mass.0”: “not available”, “massUnit.0”: “not available”, “drugName.0”: “control”, “drugDoseMagnitude.0”: “not available”, “drugDoseUnit.0”: “not available”}, {“species.0”: “Homo sapiens”, “organ.0”: “not available”, “cellLine.0”: “HEK293”, “cellCount.0”: “1000000.0”, “mass.0”: “not available”, “massUnit.0”: “not available”, “drugName.0”: “KERENDIA”, “drugDoseMagnitude.0”: “20.0”, “drugDoseUnit.0”: “milligram”}, {“species.0”: “Homo sapiens”, “organ.0”: “not available”, “cellLine.0”: “HEK293”, “cellCount.0”: “1000000.0”, “mass.0”: “not available”, “massUnit.0”: “not available”, “drugName.0”: “KERENDIA”, “drugDoseMagnitude.0”: “20.0”, “drugDoseUnit.0”: “milligram”}, {“species.0”: “Homo sapiens”, “organ.0”: “not available”, “cellLine.0”: “HEK293”, “cellCount.0”: “1000000.0”, “mass.0”: “not available”, “massUnit.0”: “not available”, “drugName.0”: “KERENDIA”, “drugDoseMagnitude.0”: “20.0”, “drugDoseUnit.0”: “milligram”}]

}