Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

loadContigs error when read TRUST4 output containing only 1 row #429

Closed
WuRAFY opened this issue Oct 27, 2024 · 2 comments
Closed

loadContigs error when read TRUST4 output containing only 1 row #429

WuRAFY opened this issue Oct 27, 2024 · 2 comments

Comments

@WuRAFY
Copy link

WuRAFY commented Oct 27, 2024

Firstly thanks for the tool. When I load a bunch of TRUST4 files with the function loadContigs, I found that the error below would happen if the file list containing a file with only one row.

Error in `colnames<-`(`*tmp*`, value = c("v_gene", "d_gene", "j_gene",  : 
  attempt to set 'colnames' on an object with less than two dimensions

Here is the one-row file
https://1drv.ms/u/c/1aa2c7aee02dd080/Ebv7ISMqDRJFqwjPiBXMcxMBnmUu8EkOBzXPs6HR6AOaIA?e=MlpAoT

FY

@Qile0317
Copy link
Collaborator

Qile0317 commented Oct 27, 2024

@WuRAFY Thanks for reporting, found the issue and fix is on the way. An ugly quickfix in the meanwhile would be to manually reconstruct the intended output since it is just 1 row.

@Qile0317
Copy link
Collaborator

Qile0317 commented Oct 28, 2024

@WuRAFY #430 fixes the issue. If you are in urgent need of using the function, you can update your package with my fork using devtools::install_github("Qile0317/scRepertoire@429") the development branch devtools::install_github("ncborcherding/scRepertoire@dev")

@WuRAFY WuRAFY closed this as completed Oct 28, 2024
ncborcherding added a commit that referenced this issue Oct 28, 2024
Fix TRUST4 loadContigs issue in #429
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants