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

regex sequence filter #4

Open
KyleStiers opened this issue Jul 31, 2017 · 2 comments
Open

regex sequence filter #4

KyleStiers opened this issue Jul 31, 2017 · 2 comments

Comments

@KyleStiers
Copy link
Collaborator

I'm still sorting through issues with getting this to build on windows (a few modules of the mmtf-spark project don't build successfully during the maven install).

Just so you know, once I have those sorted out, I'm going to try to implement/modify the regex filter (ContainsSequenceRegex) so that users can further filter fragments by sequence if they so choose.

Something akin to: .filter(new ContainsSequenceRegex("[XXX].{1}[XXX].{1}[XXX].")) after the call to ConsecutiveFragment() in the creation of the JavaRDD rows variable. I'm not very familiar with regex though. So it could take me a bit.

@lafita
Copy link
Owner

lafita commented Aug 1, 2017

Have you tried skipping the tests when running the maven install?

@KyleStiers
Copy link
Collaborator Author

KyleStiers commented Aug 1, 2017

Yes, I've forced it to skip tests / ignore failures and that makes it build successfully. It still doesn't run properly, I get:

Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
	at java.util.ArrayList.rangeCheck(ArrayList.java:653)
	at java.util.ArrayList.get(ArrayList.java:429)
	at org.biojava.nbio.structure.StructureImpl.getChainByIndex(StructureImpl.java:353)
	at org.biojava.nbio.structure.StructureImpl.getChainByIndex(StructureImpl.java:345)
	at edu.sdsc.main.FragmentSearch.main(FragmentSearch.java:41)

However, one of the tests that fails (maybe 2) are used in FragmentSearch.java and so I'm wondering if that's responsible. It seems like BioJava isn't working properly, as that error seems to come from the .toArray method of the AminoAcid query instance.

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

No branches or pull requests

2 participants