Skip to content

Commit

Permalink
fix handling of manc partner metadata
Browse files Browse the repository at this point in the history
* nb the previous select/rename statements were being ignored
  (as they did not result in an assignment)
  • Loading branch information
jefferis committed Aug 31, 2024
1 parent 24e494c commit 6d93c6a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion R/partners.R
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,12 @@ cf_partners <- function(ids, threshold=1L, partners=c("inputs", "outputs"),
tres=left_join(tres, metadf, by = partner_col)
} else if(n=='manc') {
tres=malevnc::manc_connection_table(ids[[n]],partners = partners, threshold=threshold, chunk = neuprint.chunksize)
tres %>% dplyr::select(partner, type, name) %>% dplyr::rename(bodyid=partner)
# nb we do not get rootSide information with manc_connection_table
tres <- tres %>%
mutate(side=dplyr::case_when(
!is.na(somaSide) & somaSide!='NA' & somaSide!='' ~ substr(somaSide,1,1),
T ~ stringr::str_match(name, "_([LRM])$")[,2]
))
}
tres=coconat:::standardise_partner_summary(tres)
tres$dataset=n
Expand Down

0 comments on commit 6d93c6a

Please sign in to comment.