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

what is tip.walk.files? #87

Open
wangzitiner opened this issue May 22, 2023 · 0 comments
Open

what is tip.walk.files? #87

wangzitiner opened this issue May 22, 2023 · 0 comments

Comments

@wangzitiner
Copy link

Hello!

I'm trying my own data using the code on this website. But I didn't find "tip.walk.files" anywhere before it was used. Thus, my process stopped here. I want to know how to make this file. Could you please help me?

Process walks from cluster

Get list of walk files

tip.walk.files <- list.files(path = "walks/dm-8-tm-40-80/", pattern = ".rds", full.names = T)

Which tips were walked?

tips.walked <- setdiff(unique([email protected]$ZF6S-Cluster-Num), NA)

Run through each tip, load the walks, and process them into visitation frequency for that tip.

for (tip in tips.walked) {

Get the files for that tip

tip.files <- grep(paste0("walks-", tip, "-"), tip.walk.files, value=T)
if (length(tip.files) > 0) {
# Read the files into a list of lists, and do a non-recursive unlist to combine into one list.
these.walks <- unlist(lapply(tip.files, readRDS), recursive = F)
object <<- processRandomWalks(object, walks=these.walks, walks.name=tip, verbose=F)
}
}

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