Giter Club home page Giter Club logo

fancr's Introduction

flyconnectome

Profile repository

This is a test!

fancr's People

Contributors

dokato avatar jefferis avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

amberqiong

fancr's Issues

Error with cleft.threshold in fanc_partner_summary

Running fanc_partner_summary with the cleft.threshold argument set to anything other than 0 returns the following error:

Error:
! Must subset rows with a valid subscript vector.
ℹ Logical subscripts must match the size of the indexed input.
x Input has size 12386 but subscript `res$cleft_score > cleft.threshold` has size 0.
Run `rlang::last_error()` to see where the error occurred.
Warning message:
Unknown or uninitialised column: `cleft_score`. 

Here's the output of rlang::last_trace() after running rlang::last_error()

<error/vctrs_error_subscript_size>
Error:
! Must subset rows with a valid subscript vector.
ℹ Logical subscripts must match the size of the indexed input.
x Input has size 12386 but subscript `res$cleft_score > cleft.threshold` has size 0.
---
Backtrace:
     ▆
  1. └─fancr::fanc_partner_summary(...)
  2.   ├─fancr::with_fanc(...)
  3.   │ └─base::force(expr)
  4.   └─fafbseg::flywire_partner_summary(...)
  5.     └─fafbseg:::flywire_partners_cave(...)
  6.       ├─res[res$cleft_score > cleft.threshold, , drop = FALSE]
  7.       └─tibble:::`[.tbl_df`(...)
  8.         └─tibble:::tbl_subset_row(xo, i = i, i_arg)
  9.           └─tibble:::vectbl_as_row_index(i, x, i_arg)
 10.             └─tibble:::vectbl_as_row_location(i, nr, i_arg, assign)
 11.               ├─tibble:::subclass_row_index_errors(...)
 12.               │ └─base::withCallingHandlers(...)
 13.               └─vctrs::vec_as_location(i, n)
 14.                 └─vctrs `<fn>`()
 15.                   └─vctrs:::stop_indicator_size(...)
 16.                     └─rlang::cnd_signal(new_error_subscript_size(i, n = n, ..., body = cnd_body_vctrs_error_indicator_size))

fanc_partner_summary runs without errors when the cleft.threshold argument is explicitly specified to be 0 in the function call or when it is not specified in the call and defaults to 0. The above error happens whenever cleft.threshold is set to a positive integer; negative values or non-integers fail the corresponding assertion statements and throw different errors.

Also, I've updated my installation for fafbseg and fancr, and the issue persists.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.