Skip to content
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

parse-results: misaligned columns in output csv #54

Open
nikyk opened this issue Mar 19, 2021 · 0 comments
Open

parse-results: misaligned columns in output csv #54

nikyk opened this issue Mar 19, 2021 · 0 comments
Assignees

Comments

@nikyk
Copy link

nikyk commented Mar 19, 2021

"parse-results" utility doesnt work as expected in some cases.
When I open csv file in Excel/LibreOfficeCalc, I see that many records occupy wrong columns.
Expected behavior: each column correspond to its own gene/pseudogene (HLA-A, DPB1, etc)
E.g., I see DQA1 record in column named QDB1 and so on. Some lines for samples have more records, than others.
For instance, the DPB2 gene exists in the output files for some samples, but is absent for the rest of the records.
Starting from column for this gene, order of column is broken.

Proposed solution:

  1. scan all source *.report files for the first time, create complete list of genes present in *.report files
  2. use list of genes to name columns
  3. scan report files for the second time, and fill the table. If some gene is absent, leave column blank.

tsoi2018_hla_L1.xlsx

@chbe-helix chbe-helix self-assigned this Mar 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants