Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
injection time is now added by default in readMSData2
- Loading branch information
1 parent
f126027
commit 7aab7fe
Showing
6 changed files
with
21 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
## These data should eventually be extracted in mzR and added to the | ||
## default header | ||
|
||
injectionTimeFromFile1 <- function(f) { | ||
xvals <- vector("list", length = length(f)) | ||
doc <- XML::xmlInternalTreeParse(f) | ||
namespaceDef <- XML::getDefaultNamespace(doc) | ||
ns <- c(x = namespaceDef[[1]]$uri) | ||
x <- XML::xpathApply(doc, "//x:cvParam[@accession = 'MS:1000927']", | ||
namespaces = ns, xmlAttrs) | ||
xvals <- sapply(x, "[", "value") | ||
as.numeric(unlist(xvals)) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters