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

Add a filter that skips PTIDs for specific flags #148

Open
s-emerson opened this issue Jul 31, 2024 · 0 comments
Open

Add a filter that skips PTIDs for specific flags #148

s-emerson opened this issue Jul 31, 2024 · 0 comments

Comments

@s-emerson
Copy link
Contributor

Chris has asked to add a filter that skips optional modules for specific ptids (like bad_ptids but for specific flags).

This might be complicated to accomplish, since the filters are run BEFORE the command to run redcap2nacc on a file. We might have to add a flag like "exclude" that takes in a list of PTIDs from the config.

Use case:
Say we have PTIDs 1, 2, and 3. PTID 1 has UDS data only, while PTIDs 2 and 3 have LBD data along with the UDS data. But if PTID 3 has some kind of issue with its LBD packets, we need to skip PTID 3 during an -lbd or -lbdsv -ivp or -lbdsv -fvp run, but NOT during a plain -ivp or -fvp run.
So, with this filter, when running -lbdsv -ivp, only PTID 2 would be processed (PTID 1 does not have data, and PTID 3 has been configured to be skipped).
I propose adding a flag like -e, so that the command to process only PTID 2 would be -lbdsv -ivp -e for example.

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