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

! Column name barcodes must not be duplicated. #193

Closed
Flu09 opened this issue Aug 4, 2024 · 2 comments
Closed

! Column name barcodes must not be duplicated. #193

Flu09 opened this issue Aug 4, 2024 · 2 comments

Comments

@Flu09
Copy link

Flu09 commented Aug 4, 2024

> hca_bm <- Add_Mito_Ribo(object = mergedf, species = "Human")
Error in `rownames_to_column()`:
! Column name `barcodes` must not be duplicated.
Caused by error in `repaired_names()`:
! Names must be unique.
✖ These names are duplicated:
  * "barcodes" at locations 4 and 139.
Run `rlang::last_trace()` to see where the error occurred.
@Flu09
Copy link
Author

Flu09 commented Aug 4, 2024

duplicated_colnames <- colnames(metadata)[duplicated(colnames(metadata))]
> # Print duplicated column names
> print(duplicated_colnames)
character(0)


The 4th and 139th barcodes are
   [3] "D01_S01_AAACGGGTCAGTTCGA-1" "D01_S01_AAAGATGCACAACGCC-1"
 [139] "D01_S01_AGATTGCTCTAGAGTC-1" "D01_S01_AGCAGCCGTCTCTTAT-1"

@samuel-marsh
Copy link
Owner

Hi @Flu09,

Thanks for reporting the issue. It's not the 4th and 139th barcodes but reference to the columns. I believe the issue was internal to function and not the input data. I think my latest push should have resolved the issue.

Please install latest version:

devtools::install_github(repo = "samuel-marsh/scCustomize", ref = "release/2.2.0")

If the issue persists after updating please let me know and I will reopen the issue.

Thanks!
Sam

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