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 new datatype bcsp #19363

Closed
wants to merge 2 commits into from
Closed

Conversation

SantaMcCloud
Copy link

Hello,

this PR should add the new datatype bcsp. Sadly there is no docomuentation to it but it is used in a tool which i did wrapped and without it the tool can not be used in Galaxy. The only thing i know is that this file format is a binary format and was generate with a Rust program.

How to test the changes?

(Select all options that apply)

  • I've included appropriate automated tests.
  • This is a refactoring of components with existing test coverage.
  • Instructions for manual testing are as follows:
    1. [add testing steps and prerequisites here if you didn't write automated tests covering all your changes]

License

  • I agree to license these and all my past contributions to the core galaxy codebase under the MIT license.

@github-actions github-actions bot added this to the 25.0 milestone Dec 20, 2024
@SantaMcCloud
Copy link
Author

Here is the tool which need this datatype for more information: galaxyproject/tools-iuc#6647

@SantaMcCloud
Copy link
Author

SantaMcCloud commented Dec 20, 2024

and a question when this will be merged will this datatype be available immediately or do i have to wait till v25?

@bgruening
Copy link
Member

@SantaMcCloud you can target the release_24.1 or release_24.2 branch. Then it will be available right a way.

@@ -4747,3 +4747,8 @@ def display_peek(self, dataset: DatasetProtocol) -> str:
return dataset.peek
except Exception:
return f"Binary numpy file ({nice_size(dataset.get_size())})"

class bcsp(Binary):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't need to do that.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So i can delete this?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -1017,6 +1017,7 @@
<datatype extension="fits" type="galaxy.datatypes.binary:FITS" mimetype="application/octet-stream" display_in_upload="true" description="Flexible Image Transport System (FITS) used in Astronomy"/>
<datatype extension="chain" type="galaxy.datatypes.chain:Chain" display_in_upload="true" description_url="https://genome.ucsc.edu/goldenPath/help/chain.html"/>
<datatype extension="ucsc.net" type="galaxy.datatypes.chain:Net" display_in_upload="true" description_url="https://genome.ucsc.edu/goldenPath/help/net.html"/>
<datatype extension="bcsp" type="galaxy.datatypes.binary:bcsp" display_in_upload="true"/>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can do it similar to here, just subclass the Binary datatype.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SantaMcCloud
Copy link
Author

@SantaMcCloud you can target the release_24.1 or release_24.2 branch. Then it will be available right a way.

i will have a lookt at this then thank you. If i dont understand it i will ask here again!

@@ -1017,6 +1017,7 @@
<datatype extension="fits" type="galaxy.datatypes.binary:FITS" mimetype="application/octet-stream" display_in_upload="true" description="Flexible Image Transport System (FITS) used in Astronomy"/>
<datatype extension="chain" type="galaxy.datatypes.chain:Chain" display_in_upload="true" description_url="https://genome.ucsc.edu/goldenPath/help/chain.html"/>
<datatype extension="ucsc.net" type="galaxy.datatypes.chain:Net" display_in_upload="true" description_url="https://genome.ucsc.edu/goldenPath/help/net.html"/>
<datatype extension="bcsp" type="galaxy.datatypes.binary:Binary" mimetype="application/octet-stream" display_in_upload="true" subclass="true"/>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you have a discription_url or something like that?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No i didnt found anything about this file extension. I think it is a file extension made by rust but even in the documentary i didnt find anything about it

@SantaMcCloud
Copy link
Author

@bgruening when i commit to the release_24.1 branch the PR where the PR should be merge and all old commit will be stated there? I want to ask if this is correct befor i open the PR :)

@bgruening
Copy link
Member

You go to the release_24.1 branch, you create a new branch from this one, commit your changes and create a new PR.

git checkout release_24.1
git checkout -b my_new_branch
git commit .....
git push ....

@SantaMcCloud SantaMcCloud closed this by deleting the head repository Dec 20, 2024
@SantaMcCloud SantaMcCloud mentioned this pull request Dec 20, 2024
4 tasks
@SantaMcCloud
Copy link
Author

change it! #19365

Thank @bgruening for helping me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants