Comments (7)
Ok, thanks for telling me about this.
from tools-metabolomics.
Hi, I can't reproduce the issue. The attached file contains accents in different places.
Does it work on your setup ? If yes, can up upload a (small) file that breaks ?
Often, problems with accents are related to wrong encoding issues.
Check the beginning of the mzML file: <?xml version="1.0" encoding="utf-8"?>
and also your sessionInfo()
for the LOCALE settings.
> xr <- xcmsRaw("Challenge-19-accents.mzML")
> xr
An "xcmsRaw" object with 2 mass spectra
Time range: 0.2-0.8 seconds (0-0 minutes)
Mass range: 100.0026-968.9352 m/z
Intensity range: 709.857-1854070
MSn data on 0 mass(es)
with 0 MSn spectra
Profile method: bin
Profile step: 1 m/z (870 grid points from 100 to 969 m/z)
Memory usage: 0.0384 MB
> xs <- xcmsSet(c("Challenge-19-accents.mzML"))
150:0 200:0 250:0 300:0 350:0 400:0 450:0 500:0 550:0 600:0 650:0 700:0 750:0 800:0 850:0 900:0 950:0
Warning message:
No peaks found in sample Challenge-19-accents
> filepaths(xs)
[1] "/tmp/Challenge-19-accents.mzML"
> ms <- openMSfile("Challenge-19-accents.mzML", backend="pwiz")
> instrumentInfo(ms)
$manufacturer
[1] "Thermo Scientific"
$model
[1] "Q Exactive"
$ionisation
[1] "electrospray ionization"
$analyzer
[1] "quadrupole"
$detector
[1] "inductive detector"
$software
[1] "Xcalibur 2.5-204201/2.5.0.2042 èéëÖÄÜöäµ"
$sample
[1] ""
$source
[1] ""
> sessionInfo()
R version 3.2.3 (2015-12-10)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 16.04
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=de_DE.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=de_DE.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=de_DE.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=de_DE.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] parallel stats graphics grDevices utils datasets methods
[8] base
other attached packages:
[1] xcms_1.47.2 Biobase_2.30.0 ProtGenerics_1.3.3
[4] BiocGenerics_0.16.1 mzR_2.5.3 Rcpp_0.12.3
from tools-metabolomics.
Hi, i'm Misharl Monsoor from the ABIMS team in Roscoff. I can't attach the file here, because it's too heavy. I will send you an Email contaning the files.
Bests regards.
from tools-metabolomics.
Yes, I can confirm the issue with an UTF-8 locale (which is standard nowadays):
> xr <- xcmsRaw("pool8.mzXML")
Error in readChar(filename, 1024) : invalid UTF-8 input in readChar()
> traceback()
6: readChar(filename, 1024)
5: mzR:::rampIsFile(object)
4: .local(object, ...)
3: xcmsSource(filename)
2: xcmsSource(filename)
1: xcmsRaw("pool8.mzXML")
If you run R with the basic C locale: LANG=C R
the issue does not occur:
> xr <- xcmsRaw("pool8.mzXML")
> xr
An "xcmsRaw" object with 4797 mass spectra
Yours,
Steffen
from tools-metabolomics.
Thanks Steffen @sneumann
I have just integrate LANG=C
on my dev branch:
https://github.com/workflow4metabolomics/xcms/blob/planemo_test/galaxy/macro/macros.xml#L18
We will test that ASAP
from tools-metabolomics.
@sneumann We have tested with the integration of LANG=C, and we confirm that it does work! Thanks a lot for your precious help.
from tools-metabolomics.
I merged in the master branch
I close this issue
Thanks @sneumann for the fix and @mmonsoor for your feedback
from tools-metabolomics.
Related Issues (20)
- readMSData error HOT 8
- suite_xcms not up to date
- xcms_chrom_plot missing color in group plot HOT 2
- Tools with picture issues in help section
- [xcms process history] error HOT 3
- findChromPeaks Merger with "bad " samplenames format auto correction HOT 1
- Please wrap the XCMS refineChromPeaks tool HOT 15
- AdjustRtime module : bug in wrapper
- camera_combinexsannos for EU Server installation
- Error when linking Isocor and Isoplot in a workflow HOT 8
- Metabolite correlation analysis - handling differences in order between tables
- xcmsSet - old version (rev: 15646e937936) - conda version resolving never finishes HOT 5
- xcms plot chromatogram - manage SampleMetadata with ad without X (check.names)
- Tool request: MZMine HOT 10
- fillPeaks function enhancement ChromPeakAreaParam
- test issue HOT 1
- metams: exchange MSP reader with MSBackendMSP from RforMassSpectrometry HOT 1
- Biocontainer not letting tool create subdirectory HOT 3
- Add DIMet tool in workflow4metabolomics
- Added tool Skyline2Isocor not being integrated onto W4M galaxy UI 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 tools-metabolomics.