Comments (4)
Hi, thanks for flagging this, it seems like there is an issue with generating headers.
The intended behaviour is that if multiple reports are passed to hamronize
at once that only the first report writes a header. This is to allow a user to pass say 10 reports in and pipe them all to the same output file. Clearly something is going wrong here though.
Just so I fix the right thing, can you clarify exactly how what command you are running for hamronize
for one of the outputs missing a head?
from hamronization.
For sure - those without headers have been run with the following command on a folder of multiple reports such as:
hamronize amrfinderplus amr_amrfinder/*.tsv --output hamronize_amrfinder --input_file_name amrfinderplus --analysis_software_version v3.11.14 --reference_database_version 2023-11-15.1
I tried running hamronize on a single report from each tool listed above and the summarize output does look at expected (attached)
results_single.txt
from hamronization.
Weird, I'm struggling to reproduce the behaviour with the AFP outputs I have to hand.
Could you clone the repository and enter it:
git clone https://github.com/pha4ge/hAMRonization; cd hAMRonization
Then run the following command:
hamronize amrfinderplus test/data/dummy/amrfinderplus/report.tsv test/data/raw_outputs/amrfinderplus/report_nucleotide.tsv test/data/raw_outputs/amrfinderplus/report_protein.tsv --output hamronize_test --input_file_name amrfinderplus --analysis_software_version v3.11.14 --reference_database_version 2023-11-15.1
Does hamronize_test
have a header?
Also does the same behaviour happen if you use the json output format and summarize those, e.g.:
hamronize amrfinderplus amr_amrfinder/*.tsv --output hamronize_amrfinder.json --input_file_name amrfinderplus --analysis_software_version v3.11.14 --reference_database_version 2023-11-15.1 --format json
hamronize summarize hamronize_amrfinder.json
from hamronization.
Re: hamronize_test
- it looks like the header was repeated once for each input, output attached
hamronize_test.txt
Re: json - the json file appears correct as far as I can tell (attached), but the summarize command produces only a header, no data
hamronize_amrfinder.json
Also attached a few of my outputs from amrfinderplus if that's helpful
20231115_sample03_amrfinder.txt
20231128_sample02_amrfinder.txt
from hamronization.
Related Issues (20)
- help understanding resfinder run HOT 1
- ORF_ID missing once RGI report hAMRonized HOT 1
- RgiIO.py: Typo in line 79 HOT 1
- Fix issue of very similar runs falsely combining results in summary
- Genetic_variation_type HOT 1
- hamronize summarize - local variable 'parsed_report' reference before assignment HOT 3
- Flag overlapping ranges in hAMRonization
- AMR Variant detection - Parsers to be updated HOT 1
- Obtain specification field data information from JSON schema HOT 1
- Update README
- Add xlsx output HOT 1
- Add CONTRIBUTING.md
- Add fARGene
- PyPi not updated, 1.0.4 tarball reports version 1.0.3 HOT 2
- [BUG] `KeyError: 'reference_database_name'` when running summarize HOT 9
- [BUG] Generated output does not follow CSP rules HOT 1
- Request for Zenodo archive
- [BUG] - RGI bwt gene_mapping HOT 3
- nucleotide specific fileds are empty while importing AmrFinderPlus results based on nucleotide sequences HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hamronization.