GithubHelp home page GithubHelp logo

unable to parse MiTCR outputs about tcr HOT 12 CLOSED

imminfo avatar imminfo commented on September 1, 2024
unable to parse MiTCR outputs

from tcr.

Comments (12)

vadimnazarov avatar vadimnazarov commented on September 1, 2024

Hello Joon,

It's unexpected that MiTCR output do not have the first line with metadata. The MiTCR parser function tries to skip first line and then starts to read column names and rows. Have you removed somehow the very first line from the MiTCR output and then tried to parse it?

Anyway, you could use this function to parse MiTCR files without skipping the first line:
https://gist.github.com/vadimnazarov/1b438863748fdc3bccf1

from tcr.

joonlee3 avatar joonlee3 commented on September 1, 2024

First of all, thank you so much for your quick reply.

No. I ran MiTCR with one of the output format options '-level=2'.

It seems that the first line with metadata is added to the output when -level=3. Can these parse functions work with level 3 MiTCR outputs?

from tcr.

vadimnazarov avatar vadimnazarov commented on September 1, 2024

I just realised that this file structure could be due to the MiTCR run parameters. If you run MiTCR with -level 3 parameter then parse.mitcr should work. I will try to fix this issue with the first line in the couple of days.

from tcr.

vadimnazarov avatar vadimnazarov commented on September 1, 2024

Yes!

from tcr.

vadimnazarov avatar vadimnazarov commented on September 1, 2024

I will post in this topic when I fix this issue to let you know about this update. Please let me know about any issues with parse.mitcr with -level 3 and/or other bugs, I would greatly appreciate this.

from tcr.

joonlee3 avatar joonlee3 commented on September 1, 2024

It works well with level 3 data set. Thank you so much for your support.

from tcr.

vadimnazarov avatar vadimnazarov commented on September 1, 2024

Dear Joon,

I've just added the feature to parse different levels of MiTCR's output to the parse.mitcr function. If you would like to use it, please let me know if it works for you.

from tcr.

joonlee3 avatar joonlee3 commented on September 1, 2024

Thanks a lot. I'll try later and let you know. ^^

from tcr.

juni-juli avatar juni-juli commented on September 1, 2024

Dear Vadim,

I have the same problem as Joon, except that using level 3 output does not fix my problem:

Error in [.data.frame(df, , make.names(c(.barcodes, .umi.prop, .reads, :
undefined columns selected

My first line contains metadata:

MiTCRFullExportV1.1 HomoSapiens TRB /media/sf_VMdata/mitcr/file1.fastq.gz 1.01.0.3TRBHomoSapiens25both-41123both-14122310010both0.153oneMismatch0.33
Read count Percentage CDR3 nucleotide sequence CDR3 nucleotide quality Min quality CDR3 amino acid sequence V alleles V segments J alleles J segments D alleles D segments Last V nucleotide position First D nucleotide position Last D nucleotide position First J nucleotide position VD insertions DJ insertions Total insertions
5888 0.014855894293045634 TGTGCCAGCAGTGATTCGCGCGTCCAAGGGGCCAACGTCCTGACTTTC HHHHHHHHGHHIHIIHIHGGGGGGGGHHGGGGGGHGGHHGGHHHHHHH 38 CASSDSRVQGANVLTF TRBV6-1_01 TRBV6-1 TRBJ2-6_01 TRBJ2-6 TRBD1_01, TRBD2_02, TRBD2_01 TRBD1, TRBD2 13 21 24 27 7 2 9
4048 0.010213427326468873 TGTGCCAGCAACCCTGCGGGACAGTCAAAGGGACAGCAGTTCTTC HHHHHHHHGHHHHGHHHHGGGGHGHHHHHHHGHGGGHHHHHHHHH 38 CASNPAGQSKGQQFF TRBV6-1_01 TRBV6-1 TRBJ2-1_01 TRBJ2-1 TRBD1_01 TRBD1 9 17 23 34 7 10 17

Do you have any idea what might cause this?
Thanks in advance!

from tcr.

vadimnazarov avatar vadimnazarov commented on September 1, 2024

Hi!

Could you please update to the latest development version via

install.packages("devtools")
devtools::install_github("imminfo/tcR", build_vignettes = FALSE, ref = "develop")

and try to parse files again?

from tcr.

juni-juli avatar juni-juli commented on September 1, 2024

Hi, thanks for the quick response!
The installation failed with this message:

library(devtools)
devtools::install_github("imminfo/tcR", build_vignettes = FALSE, ref = "develop")
Downloading github repo imminfo/tcR@develop
Installing tcR
"C:/PROGRA1/R/R-321.1/bin/x64/R" --no-site-file --no-environ --no-save --no-restore CMD INSTALL
"C:/Users/WSUser/AppData/Local/Temp/RtmpS4Ig9x/devtools1e445fbb3a1a/imminfo-tcr-3a98516"
--library="C:/Users/WSUser/Documents/R/win-library/3.2" --install-tests

  • installing source package 'tcR' ...
    ** libs

*** arch - i386
Warnung: Ausführung von Kommando 'make -f "Makevars" -f "C:/PROGRA1/R/R-321.1/etc/i386/Makeconf" -f "C:/PROGRA1/R/R-321.1/share/make/winshlib.mk" CXX='$(CXX1X) $(CXX1XSTD)' CXXFLAGS='$(CXX1XFLAGS)' CXXPICFLAGS='$(CXX1XPICFLAGS)' SHLIB_LDFLAGS='$(SHLIB_CXX1XLDFLAGS)' SHLIB_LD='$(SHLIB_CXX1XLD)' SHLIB="tcR.dll" OBJECTS="RcppExports.o neighbour.search.o"' ergab Status 127
ERROR: compilation failed for package 'tcR'

  • removing 'C:/Users/WSUser/Documents/R/win-library/3.2/tcR'
  • restoring previous 'C:/Users/WSUser/Documents/R/win-library/3.2/tcR'
    Error: Command failed (1)

from tcr.

vadimnazarov avatar vadimnazarov commented on September 1, 2024

Hi,

could you please install Rtools (http://cran.r-project.org/bin/windows/Rtools/) for Windows, that is needed to build packages?

from tcr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.