Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
target/
12 changes: 12 additions & 0 deletions src/main/java/org/panda/resource/UniProtSequence.java
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,23 @@ public String getSeqAround(String idOrName, int prefixLen, int suffixLen, int lo
*/
int max = ((prefixLen > suffixLen ? prefixLen : suffixLen) * 2) + 1;

// max/2 is how many you want to left/right of central position
// if you want k to the right, and you are at the kth position or lesser, this is impossible
if(max/2 >= location){
return null;
}

/*
The call to getSeqAround takes the width as an argument. Consider, if the width/2 = k,
then there will be k amino acids to the left and to the right.
*/

// Will take an odd-length as argument, and return sequence of that length
// centered around location

String seq = getSeqAround(idOrName, location, max);


/*
This occurs, for example, when the location is at the beggining(or end) of the amino
acid sequence for the protein, such that there is not enough amino acids to left(or right)
Expand Down
Binary file not shown.
Binary file not shown.
Binary file removed target/classes/org/panda/resource/ChEBI.class
Binary file not shown.
Binary file removed target/classes/org/panda/resource/Download.class
Binary file not shown.
Binary file removed target/classes/org/panda/resource/FileServer.class
Binary file not shown.
Binary file removed target/classes/org/panda/resource/GO.class
Binary file not shown.
Binary file removed target/classes/org/panda/resource/GWASCatalog.class
Binary file not shown.
Binary file removed target/classes/org/panda/resource/HG37.class
Binary file not shown.
Binary file removed target/classes/org/panda/resource/HGNC$1.class
Binary file not shown.
Binary file removed target/classes/org/panda/resource/HGNC.class
Binary file not shown.
Binary file not shown.
Binary file removed target/classes/org/panda/resource/MGI.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed target/classes/org/panda/resource/MSigDB.class
Binary file not shown.
Binary file not shown.
Binary file removed target/classes/org/panda/resource/OncoKB.class
Binary file not shown.
Binary file removed target/classes/org/panda/resource/PAM50.class
Binary file not shown.
Binary file removed target/classes/org/panda/resource/PCPathway.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed target/classes/org/panda/resource/PiHelper.class
Binary file not shown.
Binary file removed target/classes/org/panda/resource/Pubmed.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed target/classes/org/panda/resource/tcga/MutTuple.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.