-
Notifications
You must be signed in to change notification settings - Fork 28
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
Reshape mutation matrix for use by core-service repository #34
Comments
See #35. |
I agree this is an important step, but I think we will want to do it slightly differently than in #35. I think we should do the processing in Until we sort these things out, can you use the workaround here for cognoma/core-service#42 (which is a super high priority PR, so let's complete that ASAP): path = 'mutation-matrix.tsv.bz2'
read_file = bz2.open(path , 'rt')
reader = csv.DictReader(read_file, delimiter='\t')
for row in reader:
sample_id = row.pop('sample_id')
for entrez_gene_id, mutation_status in row.items():
if mutation_status == '1':
# Create mutation from entrez_gene_id, sample_id
reader.close() |
|
The current format of the mutation matrix leads to some complications in the
core-service
repository. A more desirable format to work with for the purpose of populating thecore-service
mutation model would be of the form:The text was updated successfully, but these errors were encountered: