Skip to content

a problem with mzmine3 exporting data running on ISFRAG #2

Description

@Judyzyw

MZmine version: 3.4.27
R \RStudio\ Rtools version: 4.3.0

We only want to use the results exported by MZmine to see the presence of ISF in the alingnment ID we detected, but in the LEVEL3 function, the parameter "ms1.files" was not previously defined, and looking at the "functions" of R found that it was included in the "XCMS.featuretable" function, and the example also gave the data processed using XCMS, we want to know, If you just enter .csv (aligned) exported from mzmine and .mzXML (64 files) and don't rely on XCMS, can you run ISFrag successfully and hopefully get a demo code.

Below is my running code.

`library(ISFrag)

MS1directory <- "H:/ZYW/co_objects_shandong/NEG/co_objects_neg_mzxml"
MS2directory <- "H:/ZYW/co_objects_shandong/NEG/co_objects_neg_mzxml"

ft_directory <- "H:/ZYW/co_objects_shandong/NEG/sep_isfrag"
ft_name_multi <- "sep_neg_isfrag.csv"

setwd(ft_directory)
head(read.csv(ft_name_multi, header = T, stringsAsFactors = F))
customFT <- custom.featuretable(ft_directory = ft_directory, ft_name = ft_name_multi)
head(customFT)

featureTable <- ms2.assignment(MS2directory = MS2directory, customFT = customFT)

MS1.files <- list.files(path = "H:/ZYW/co_objects_shandong/NEG/co_objects_neg_mzxml", pattern = ".mzXML")

level3 <- find.level3(MS1directory = MS1directory, MS1.files = MS1.files, featureTable = featureTable, type = "multi")
#The previous operation can be done, that is, the error is reported in this place
#Error in serialize(data, node$con) : error writing to connection

level2 <- find.level2(ISFtable = level3)
level1 <- find.level1(ISF_putative = level2)

results <- get.ISFrag.results(ISF_List = level1, featureTable = featureTable)
resultFT <- export.ISFrag.results(ISFresult = results)
write.csv(resultFT, file = "sep_isf_output.csv", row.names = F, col.names = T)`

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions