-
Notifications
You must be signed in to change notification settings - Fork 21
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
Error in processTrajectories #25
Comments
Sorry for my delayed response. When you use plotKNN, is your cluster 11
connected to the other clusters? You issue is in the findPaths function
actually, as it does not seem to find a path between cluster 11 and any
others. You can try to increase K in the function buildKNN to make sure you
will have a connetced kNN graph.
Please, let me know how it goes.
Thanks!
…On Wed, May 8, 2019 at 2:09 PM cjpark85 ***@***.***> wrote:
Hi,
I'm following the tutorials and issues in github to make trajectory using
Seurat object. I got this error from processTrajectories.
filename <- "results/paths/cell_edge_weighted_network.txt"
***@***.***$edges, file=filename, sep='\t',
row.names=FALSE, col.names = FALSE, quote=FALSE)
#Select cluster 11
sources <- c('11')
targets <- ***@***.***$seurat_clusters), sources)
methods <- c("euclidean", "maximum", "manhattan","canberra","binary",
'graph') #graph for distances in KNN
##Identify trajectories
cellrouter <- findPaths(cellrouter, column='seurat_clusters', libdir,
paste(getwd(), 'results/paths', sep='/'), method="graph")
-------------------Transition: 11.0 -----------------------
-------------------Transition: 11.2 -----------------------
-------------------Transition: 11.3 -----------------------
-------------------Transition: 11.4 -----------------------
-------------------Transition: 11.5 -----------------------
-------------------Transition: 11.6 -----------------------
cellrouter <- processTrajectories(cellrouter, ***@***.***),
-
path.rank=ranks[3], num.cells = 3, neighs = 3,
-
column.ann = 'seurat_clusters', column.color = 'seurat_clusters_colors')
[1] "parsing trajectory information"
Error in file(file, "rt") : cannot open the connection
In addition: Warning message:
In file(file, "rt") :
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#25>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACNJIRZVI3KHJQU4TSHQSBDPUMJLZANCNFSM4HLT7FGQ>
.
--
Edroaldo
|
I attached my script as below. I increased K in buildKNN, but it doesn't work.
0 1 10 11 12 13 14 15 16 17 2 3 4 5 6 7 8 9
Attaching package: ‘statnet.common’ The following object is masked from ‘package:bit64’:
The following object is masked from ‘package:BiocGenerics’:
The following object is masked from ‘package:base’:
Loading required package: network Attaching package: ‘network’ The following objects are masked from ‘package:igraph’:
The following object is masked from ‘package:plyr’:
sna: Tools for Social Network Analysis Attaching package: ‘sna’ The following object is masked from ‘package:graph’:
The following objects are masked from ‘package:igraph’:
The following object is masked from ‘package:bit’:
Warning messages:
Rerun with Debug
Rerun with Debug Rerun with Debug
|
Hi, Today, I tried again and got this error msg. I don't know what is 'file(file, "rt")'. Also, I checked '~/results/path/8.2/' directory, but I couldn't find 'Cells_FlowNetwork_all_paths.txt' file. Is this generated by 'processTrajectories' function? How can I solve this problem?
|
I still did not have a chance to go through your script. My apologies but I
should able to so only by Friday.
Thanks for your patience.
…On Mon, May 13, 2019, 7:08 PM cjpark85 ***@***.***> wrote:
Hi,
Today, I tried again and got this error msg. I don't know what is
'file(file, "rt")'. Also, I checked '~/results/path/8.2/' directory, but I
couldn't find 'Cells_FlowNetwork_all_paths.txt' file. Is this generated by
'processTrajectories' function? How can I solve this problem?
cellrouter <- processTrajectories(cellrouter, ***@***.***),
path.rank=ranks[3], num.cells = 3, neighs = 3, column.ann =
'seurat_clusters', column.color = 'seurat_clusters_colors')
[1] "parsing trajectory information"
Error in file(file, "rt") : cannot open the connection
In addition: Warning message:
In file(file, "rt") :
cannot open file '~/results/paths/8.2/Cells_FlowNetwork_all_paths.txt': No
such file or directory
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#25?email_source=notifications&email_token=ACNJIR2ZIQZQ5CFUGS5OBN3PVHRF7A5CNFSM4HLT7FG2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVJWOEQ#issuecomment-492005138>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACNJIR5HD3PPQMKV3QYF6QTPVHRF7ANCNFSM4HLT7FGQ>
.
|
In the meantime, I'll keep trying. Thank you for your reply. |
Hello edroaldo, |
So sorry for the delay. There is something strange with your script as you
call buidKNN several times with different parameters for column.ann.
Sometimes, column.ann='population', some other times
column.ann='seurat_clusters'.
You have to keep it consistent. Please, try to use only seurat_clusters
instead.
buildKNN, plotKNN, findPaths, they all should use "seurat_clusters":
libdir <- '/home/edroaldo/CellRouter/'
cellrouter <- buildKNN(cellrouter, k = 15, *column.ann = 'seurat_clusters'*,
num.pcs = 25, sim.type = 'jaccard') ### double-check this....
plotKNN(cellrouter, reduction.type = 'tsne', *column.ann =
'seurat_clusters', column.color = 'seurat_clusters_colors'*,
filename='results/knn_tsne.pdf') #increase legend size
filename <- "results/paths/cell_edge_weighted_network.txt"
write.table(cellrouter@graph$edges, file=filename, sep='\t',
row.names=FALSE, col.names = FALSE, quote=FALSE) #input network
#change sources and targets for your situation...
sources <- c('2', '4')
targets <- c('3', '7')
methods <- c("euclidean", "maximum", "manhattan","canberra","binary",
'graph') #graph for distances in KNN
cellrouter <- findPaths(cellrouter,sources=sources, targets=targets,
*column='seurat_clusters'*, libdir, paste(getwd(), 'results/paths',
sep='/'), method="graph")
Thanks!
…On Wed, Jun 5, 2019 at 11:02 AM cjpark85 ***@***.***> wrote:
Hello edroaldo,
I'm still struggling with this issue. I'm sorry. I need some help.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#25?email_source=notifications&email_token=ACNJIRZB5UIGZUIIA23RHATPY7IIRA5CNFSM4HLT7FG2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODW77WLQ#issuecomment-499120942>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACNJIR7ICFP62ZT7S43J77DPY7IIRANCNFSM4HLT7FGQ>
.
--
Edroaldo
|
Thank you for reviewing this script. I ran again according to your suggestion, but I can see same error. I'm sorry to keep bothering you. Actually, I can't find the file 'Cells_FlowNetwork_all_paths.txt'.
|
Hi,
I'm following the tutorials and issues in github to make trajectory using Seurat object. I got this error from processTrajectories.
The text was updated successfully, but these errors were encountered: