Skip to content

Commit

Permalink
Merge pull request #54 from eurunuela/keyboard_shortcuts
Browse files Browse the repository at this point in the history
Add support for keyboard shortcuts
  • Loading branch information
eurunuela authored Jul 11, 2022
2 parents bc7ef5f + 0a56783 commit d994189
Show file tree
Hide file tree
Showing 4 changed files with 251 additions and 149 deletions.
16 changes: 12 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,18 @@ As part of the ME-ICA pipeline, `Rica` (Reports for ICA) provides a reporting to

`Rica` originally came out as an alternative to the reports provided by [tedana](https://github.com/ME-ICA/tedana), with the aim of making manual classification of ICA components possible. At the same time, the tool aspires to be of value for ICA decompositions made with tools other than `tedana`. `Rica` assumes you're working with files that mimic the outputs of `tedana`.

## How to use Rica

Even if Rica is designed to be simple to use, you might want to see how you can use the app by watching this [tutorial video](https://www.loom.com/share/ad37cf6f3c2d41e48721f62168a8284e).

Rica also supports keyboard shortcuts on the ICA components page. You can use the following shortcuts:

- `a`: Accept component.
- `r`: Reject component.
- `i`: Ignore component.
- `left arrow`: Go to previous component.
- `right arrow`: Go to next component.

## Using Rica online

Just head over to https://rica-fmri.netlify.app and have fun!
Expand Down Expand Up @@ -41,10 +53,6 @@ open build/rica.html

> Pro tip: when you open rica.html for the first time, BOOKMARK IT 😉
## Using Rica

Even if Rica is designed to be simple to use, you might want to see how you can use the app by watching this [tutorial video](https://www.loom.com/share/ad37cf6f3c2d41e48721f62168a8284e).

## Getting involved

Want to learn more about our plans for developing `Rica`? Have a question, comment, or suggestion? Open or comment on one of our issues!
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"react": "^17.0.2",
"react-chartjs-2": "3.0.4",
"react-dom": "^17.0.2",
"react-hotkeys": "^2.0.0",
"react-icons": "^4.2.0",
"react-papaparse": "^3.17.2",
"react-scripts": "^5.0.0",
Expand Down
2 changes: 1 addition & 1 deletion src/Plots/PlotUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const ignoredColorHover = "#0284C7";
// This functions converts the data into 4 objects corresponding to the 4 plots.
// The objects have the necessary structure to feed the chartjs plots.
export function parseData(data) {
console.log(data);
// console.log(data);
let kappa_rho = {
labels: data.map((e) => e.Component),
datasets: [
Expand Down
Loading

0 comments on commit d994189

Please sign in to comment.