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

write.table format is wrong in exportsForArboreto function #113

Open
Sophia409 opened this issue Dec 8, 2019 · 0 comments
Open

write.table format is wrong in exportsForArboreto function #113

Sophia409 opened this issue Dec 8, 2019 · 0 comments

Comments

@Sophia409
Copy link

Sophia409 commented Dec 8, 2019

@cflerin Hi,
As #67 said,I also find the expression matrix generated by exportsForArboreto has no rowname (cell ids). The write.table format(row.names = FALSE) is wrong in exportsForArboreto function ,row.names should be true not false.

> exportsForArboreto
function (exprMat, scenicOptions, dir = "int") 
{
    allTFs <- getDbTfs(scenicOptions)
    inputTFs <- allTFs[allTFs %in% rownames(exprMat)]
    write.table(inputTFs, file = file.path(dir, "1.1_inputTFs.txt"), 
        sep = "\t", quote = FALSE, row.names = FALSE, col.names = FALSE)
    message("TF list written as: ", file.path(dir, "1.1_inputTFs.txt"))
    exprMat_t <- t(exprMat)
    write.table(exprMat_t, file = file.path(dir, "1.1_exprMatrix_filtered_t.txt"), 
        sep = "\t", quote = FALSE, **row.names = FALSE**, col.names = TRUE)
    message("Transposed expression matrix written as: ", 
        file.path(dir, "1.1_exprMatrix_filtered_t.txt"))
}
<bytecode: 0x0000020328d756f0>
<environment: namespace:SCENIC>
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

1 participant