hammerlab / cohorts

Utilities for analyzing mutations and neoepitopes in patient cohorts
Apache License 2.0
20 stars 4 forks source link

Support easy Cohort creation #218

Open tavinathanson opened 7 years ago

tavinathanson commented 7 years ago

Making a Cohort with appropriate Patient and Sample objects can be a bit of a pain. It's a necessary pain when reading in data from multiple sources, as we often do. It shouldn't be necessary if all relevant data already lives in one DataFrame; in that case, we could have e.g. Cohort.from_dataframe(df, id="patient_id", ...) to build the Cohort.