-
Notifications
You must be signed in to change notification settings - Fork 6
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 scripts/managed_repo_symlinks.py #54
Open
will-moore
wants to merge
9
commits into
IDR:master
Choose a base branch
from
will-moore:managed_repo_symlinks
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
As discussed in IDR meeting yesterday: don't expect to use the |
Reopened PR for now: Using this branch to update symlinks following upload to BioStudies: see IDR/idr-metadata#659 (comment) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
For the importing-NGFF-Filesets-without-chunks workflow, we import a metadata-only copy of the image/plate, then need to view an image from each plate before creating symlinks from the Managed Repo to the directory that contains the image/plate.
E.g. see README at https://github.com/IDR/idr0125-way-cellpainting
This PR aims to replace the following manual steps described there...
Need to view an image from each plate OR
omero render set Image:ID rdef.yml
for each plate, to avoid subsequent ResourceError after symlinking. Seescripts/render_set_cmd.py
Run
scripts/get_import_paths.py
to create imported_paths.txt with the managed repo path for each imported plate.Run
scripts/symlink_cmd.py
which consumesimported_paths.txt
to output the commands to replace each plate in the managed repo with a symlink to the corresponding plate on a mounted s3 bucket. These can be saved inscripts/symlinks.bash
. Need torun sudo chmod +x symlinks.bash
thensudo -u omero-server -s
andbash symlinks.bash
....with a single script run:
E.g. For a Screen that contains Plates, where the plates are mounted at
/path/to/plates/dir/
we can run:Default
repo
is/data/OMERO/ManagedRepository
Script also supports the
--dry-run
and--report
options.