-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'TASK-5564' into TASK-5387
- Loading branch information
Showing
136 changed files
with
5,365 additions
and
3,607 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: Pull request approve workflow | ||
|
||
on: | ||
pull_request_review: | ||
types: [ submitted ] | ||
|
||
jobs: | ||
build: | ||
uses: opencb/java-common-libs/.github/workflows/build-java-app-workflow.yml@develop | ||
|
||
test: | ||
name: "Test analysis" | ||
uses: ./.github/workflows/test-analysis.yml | ||
needs: build | ||
secrets: inherit |
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
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
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
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
61 changes: 61 additions & 0 deletions
61
cellbase-app/app/scripts/ensembl-scripts/ensembl_canonical.pl
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
#!/usr/bin/env perl | ||
|
||
use strict; | ||
use Getopt::Long; | ||
use Data::Dumper; | ||
use JSON; | ||
use DB_CONFIG; | ||
|
||
use BioMart::Initializer; | ||
use BioMart::Query; | ||
use BioMart::QueryRunner; | ||
|
||
## Default values | ||
my $species = 'hsapiens'; | ||
my $outdir = "./"; | ||
|
||
## Parsing command line | ||
GetOptions ('species=s' => \$species, 'outdir=s' => \$outdir); | ||
|
||
|
||
my $confFile = "/opt/cellbase/scripts/ensembl-scripts/martURLLocation.xml"; | ||
|
||
# NB: change action to 'clean' if you wish to start a fresh configuration | ||
# and to 'cached' if you want to skip configuration step on subsequent runs from the same registry | ||
my $action='clean'; | ||
my $initializer = BioMart::Initializer->new('registryFile'=>$confFile, 'action'=>$action); | ||
my $registry = $initializer->getRegistry; | ||
|
||
my $query = BioMart::Query->new('registry'=>$registry,'virtualSchemaName'=>'default'); | ||
|
||
$query->setDataset($species."_gene_ensembl"); | ||
|
||
$query->addAttribute("ensembl_gene_id"); | ||
$query->addAttribute("ensembl_transcript_id"); | ||
$query->addAttribute("transcript_is_canonical"); | ||
|
||
$query->formatter("TSV"); | ||
|
||
# Open the file for writing | ||
open(my $fh, '>', "$outdir/ensembl_canonical.txt") or die "Cannot open ensembl_canonical.txt file: $!"; | ||
|
||
# Save the original stdout | ||
my $original_stdout = *STDOUT; | ||
open(STDOUT, '>&', $fh) or die "Can't redirect STDOUT: $!"; | ||
|
||
my $query_runner = BioMart::QueryRunner->new(); | ||
|
||
# to obtain unique rows only | ||
$query_runner->uniqueRowsOnly(1); | ||
$query_runner->execute($query); | ||
#$query_runner->printHeader(); | ||
#print ENSEMBL_CANONICAL $query_runner->printResults(); | ||
# Call printResults which prints to STDOUT (now redirected to the file) | ||
$query_runner->printResults(); | ||
#$query_runner->printFooter(); | ||
|
||
# Restore the original stdout | ||
open(STDOUT, '>&', $original_stdout) or die "Can't restore STDOUT: $!"; | ||
|
||
# Close the filehandle | ||
close($fh) or die "Failed to close file: $!"; |
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
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
19 changes: 19 additions & 0 deletions
19
cellbase-app/app/scripts/ensembl-scripts/martURLLocation.xml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<!-- | ||
~ Copyright 2015-2020 OpenCB | ||
~ | ||
~ Licensed under the Apache License, Version 2.0 (the "License"); | ||
~ you may not use this file except in compliance with the License. | ||
~ You may obtain a copy of the License at | ||
~ | ||
~ http://www.apache.org/licenses/LICENSE-2.0 | ||
~ | ||
~ Unless required by applicable law or agreed to in writing, software | ||
~ distributed under the License is distributed on an "AS IS" BASIS, | ||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
~ See the License for the specific language governing permissions and | ||
~ limitations under the License. | ||
--> | ||
|
||
<MartRegistry> | ||
<MartURLLocation database="ensembl_mart_111" default="1" displayName="Ensembl Genes 111" host="www.ensembl.org" includeDatasets="" martUser="" name="ENSEMBL_MART_ENSEMBL" path="/biomart/martservice" port="80" serverVirtualSchema="default" visible="1" /> | ||
</MartRegistry> |
This file was deleted.
Oops, something went wrong.
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
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
Oops, something went wrong.