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

New @id generation for parsers and other bug corrections #142

Open
wants to merge 22 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
c7a2197
automated nidm example computation from github action
Jun 10, 2024
c7372d4
Merge branch 'bids-standard:master' into master
bclenet Sep 5, 2024
dd2f163
Replacing RRID by AltIdentifier
bclenet Sep 5, 2024
acef62b
Dealing with RRIDs for AltIdentifier
bclenet Sep 5, 2024
79b41a1
[TEST] updates for RRID handling
bclenet Sep 5, 2024
777f59c
Updating parsers after changes in default_graph
bclenet Sep 5, 2024
19f0262
automated nidm example computation from github action
Sep 5, 2024
3846692
New strategies for Id generation
bclenet Sep 11, 2024
a63a41d
Sanitizing URIs for Entities from AFNI provenance
bclenet Sep 19, 2024
db87417
Cleaning SPM paths before parsing nidm examples
bclenet Sep 24, 2024
f142cfc
AFNI entity URIs
bclenet Sep 25, 2024
11003ec
Entity ids
bclenet Sep 26, 2024
c85e427
Correcting some function descriptions doe AFNI
bclenet Sep 26, 2024
3b84ca9
AFni description functions + SPM c1xxx bug
bclenet Oct 3, 2024
7bcf386
Allowing '--' for FSL parameter keys
bclenet Oct 3, 2024
5b9d420
[BUG] multiple space chars causing wrong entities for FSL parser
bclenet Oct 3, 2024
f740415
Safer URNs for all parsers
bclenet Oct 3, 2024
6aa1fcf
automated nidm example computation from github action
Oct 3, 2024
8be9c48
[BUG] Agent ids on all parsers
bclenet Oct 3, 2024
fd70559
Issue with c1xxx ids
bclenet Oct 4, 2024
9ca3535
[Launch Nidm Examples] Changing file names for ds000052 bids dataset
bclenet Oct 4, 2024
d35cd57
automated nidm example computation from github action
Oct 4, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Issue with c1xxx ids
  • Loading branch information
bclenet committed Oct 4, 2024
commit fd70559dd1c41324380b60e3ff3f51415fd7ba2f
4 changes: 3 additions & 1 deletion bids_prov/spm/spm_parser.py
Original file line number Diff line number Diff line change
@@ -355,7 +355,9 @@ def get_records(task_groups: dict, agent_id: str, verbose=False) -> dict:
for idx, entity in enumerate(output_ext_entities):
input_ent = find_entity_from_id(output_id, records["Entities"])
entity['Label'] = f"{entity['Label']}{str(idx + 1)}"
entity['AtLocation'] = f"c{str(idx + 1)}{input_ent['Label']}"
new_at_location = f"c{str(idx + 1)}{input_ent['Label']}"
entity['AtLocation'] = new_at_location
entity['@id'] = get_entity_urn(new_at_location)
add_ext_entity = 1

# TO DO whatif multiple