-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[feature] Transition the phenotype associations to non-parametric tes…
…ts (#171)
- Loading branch information
Showing
27 changed files
with
520 additions
and
429 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ jobs: | |
strategy: | ||
matrix: | ||
os: ["ubuntu-latest", "windows-latest", "macos-latest"] | ||
python-version: ["3.8", "3.11"] | ||
python-version: ["3.9", "3.11"] | ||
runs-on: "${{matrix.os}}" | ||
|
||
steps: | ||
|
@@ -30,12 +30,6 @@ jobs: | |
run: | | ||
python -m pip install --upgrade pip cryptography | ||
pip install wheel numpy Cython biom-format | ||
- name: Install highspy via dev wheel | ||
if: matrix.os == 'macos-latest' | ||
run: | | ||
PYTHON_VERSION=${{ matrix.python-version }} | ||
PYTHON_VERSION=${PYTHON_VERSION//./} | ||
pip install .github/wheels/highspy-1.5.3-cp${PYTHON_VERSION}-cp${PYTHON_VERSION}-macosx_10_9_x86_64.whl | ||
- name: Install MICOM | ||
run: pip install -e . | ||
- name: install CPLEX | ||
|
@@ -52,7 +46,7 @@ jobs: | |
pip install pytest pytest-cov | ||
pytest --cov=micom --cov-report=xml | ||
- name: Upload to codecov | ||
if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.9 | ||
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11' | ||
uses: codecov/[email protected] | ||
|
||
release: | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Binary file not shown.
Binary file not shown.
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 |
---|---|---|
|
@@ -6,11 +6,9 @@ | |
<title>Growth rates</title> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/css/bulma.min.css"> | ||
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,700&display=swap" rel="stylesheet"> | ||
<script defer src="https://use.fontawesome.com/releases/v5.3.1/js/all.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/d3.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script> | ||
|
||
<style> | ||
#vis { | ||
|
@@ -44,33 +42,42 @@ <h1 class="title"> | |
<script> | ||
// Assign the specification to a local variable vlSpec. | ||
var vlSpec = { | ||
$schema: "https://vega.github.io/schema/vega-lite/v4.json", | ||
width: {{width}}, | ||
height: {{height}}, | ||
$schema: "https://vega.github.io/schema/vega-lite/v5.json", | ||
width: 300, | ||
height: {{18 * n_taxa}}, | ||
data: { | ||
values: {{data | safe}} | ||
}, | ||
selection: { | ||
pts: {type: "single", fields: ["sample_id"]} | ||
}, | ||
transform: [{ | ||
calculate: "random()-0.5", | ||
as: "jitter" | ||
}], | ||
mark: { | ||
type: "point", | ||
filled: true, | ||
size: 40, | ||
tooltip: {content: "data"} | ||
}, | ||
encoding: { | ||
y: { | ||
x: { | ||
field: "growth_rate", | ||
type: "quantitative", | ||
scale: {type: "log"}, | ||
axis: {title: "growth rate [1/h]", grid: false} | ||
}, | ||
x: { | ||
y: { | ||
field: "taxon", | ||
type: "nominal", | ||
sort: {op: "median", field: "growth_rate"}, | ||
axis: {title: null} | ||
sort: {op: "median", field: "growth_rate", order: "descending"}, | ||
axis: {title: null, grid: true} | ||
}, | ||
yOffset: { | ||
field: "jitter", | ||
type: "quantitative", | ||
scale: {domain: [-1, 1]} | ||
}, | ||
color: { | ||
condition: { | ||
|
@@ -93,8 +100,9 @@ <h1 class="title"> | |
|
||
// Embed the visualization in the container with id `vis` | ||
vegaEmbed("#vis", vlSpec, {renderer: "svg"}).then(function(r) { | ||
svg = d3.select("#vis svg"); | ||
svg.attr("width", "100%").attr("height", "auto"); | ||
svg = document.querySelector("#vis svg"); | ||
svg.setAttribute("width", "100%"); | ||
svg.setAttribute("height", "auto"); | ||
}); | ||
|
||
{% include "blobify.js" %} | ||
|
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 |
---|---|---|
|
@@ -6,11 +6,9 @@ | |
<title>Taxa niche/production overlap</title> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/css/bulma.min.css"> | ||
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,700&display=swap" rel="stylesheet"> | ||
<script defer src="https://use.fontawesome.com/releases/v5.3.1/js/all.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/d3.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script> | ||
|
||
<style> | ||
#vis { | ||
|
@@ -27,7 +25,7 @@ <h1 class="title"> | |
Taxa niche/production overlap | ||
</h1> | ||
<p class="subtitle"> | ||
Each point denotes the reduced import/export fluxes for a single taxon | ||
Each point denotes the reduced {{direction}} fluxes for a single taxon | ||
in a single sample. If two points are close to each other they consume | ||
(for direction="import") or produce (for direction="export") the same | ||
metabolites.<br> | ||
|
@@ -47,7 +45,7 @@ <h1 class="title"> | |
<script> | ||
// Assign the specification to a local variable vlSpec. | ||
var vlSpec = { | ||
$schema: "https://vega.github.io/schema/vega-lite/v4.json", | ||
$schema: "https://vega.github.io/schema/vega-lite/v5.json", | ||
width: {{width}}, | ||
height: {{height}}, | ||
data: { | ||
|
@@ -91,8 +89,9 @@ <h1 class="title"> | |
|
||
// Embed the visualization in the container with id `vis` | ||
vegaEmbed("#vis", vlSpec, {renderer: "svg"}).then(function(r) { | ||
svg = d3.select("#vis svg"); | ||
svg.attr("width", "100%").attr("height", "auto"); | ||
svg = document.querySelector("#vis svg"); | ||
svg.setAttribute("width", "100%"); | ||
svg.setAttribute("height", "auto"); | ||
}); | ||
|
||
{% include "blobify.js" %} | ||
|
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 |
---|---|---|
|
@@ -6,11 +6,9 @@ | |
<title>Sample metabolite utilization/production</title> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/css/bulma.min.css"> | ||
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,700&display=swap" rel="stylesheet"> | ||
<script defer src="https://use.fontawesome.com/releases/v5.3.1/js/all.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/d3.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script> | ||
|
||
<style> | ||
#vis { | ||
|
@@ -44,7 +42,7 @@ <h1 class="title"> | |
<script> | ||
// Assign the specification to a local variable vlSpec. | ||
var vlSpec = { | ||
$schema: "https://vega.github.io/schema/vega-lite/v4.json", | ||
$schema: "https://vega.github.io/schema/vega-lite/v5.json", | ||
width: {{width}}, | ||
height: {{height}}, | ||
data: { | ||
|
@@ -76,8 +74,9 @@ <h1 class="title"> | |
|
||
// Embed the visualization in the container with id `vis` | ||
vegaEmbed("#vis", vlSpec, {renderer: "svg"}).then(function(r) { | ||
svg = d3.select("#vis svg"); | ||
svg.attr("width", "100%").attr("height", "auto"); | ||
svg = document.querySelector("#vis svg"); | ||
svg.setAttribute("width", "100%"); | ||
svg.setAttribute("height", "auto"); | ||
}); | ||
|
||
{% include "blobify.js" %} | ||
|
Oops, something went wrong.