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

changing the directory structure #169

Merged
merged 3 commits into from
Jul 17, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
20 changes: 12 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,18 @@ gmon.out
.directory
.settings

/config/*.conf
/bin
/lib
/models/*
/install/xmipp.conf
/tests/data
# ignore everything in src folder
/build/*
/src/*
# except xmipp folder
!/src/xmipp/*

/src/xmipp/bin
/src/xmipp/lib
/src/xmipp/models/*
/src/xmipp/tests/data

# Ignore version file
.devel_version
/Debug/
applications/programs/version
/src/xmipp/Debug/
/src/xmipp/applications/programs/version
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ before_install:
- source scripts/install_cuda_travis.sh
script:
- |
python ./scripts/travis_before_script.py && \
build-wrapper-linux-x86-64 --out-dir bw-outputs ./xmipp && \
sonar-scanner && \
ccache -s
38 changes: 19 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,30 @@
[![Technical debt](https://sonarcloud.io/api/project_badges/measure?project=Xmipp&metric=sqale_index)](https://sonarcloud.io/component_measures?id=Xmipp&metric=sqale_index)
[![Bugs](https://sonarcloud.io/api/project_badges/measure?project=Xmipp&metric=bugs)](https://sonarcloud.io/project/issues?id=Xmipp&resolved=false&types=BUG)
--->
# xmipp
# Xmipp

If you want to use it as a **Scipion package for production proposes**, please visit [this](https://scipion-em.github.io/docs/docs/scipion-modes/install-from-sources#step-4-installing-xmipp3-and-other-em-plugins).
Welcome to Xmipp. Xmipp is a suite of image processing programs, primarily aimed at single-particle 3D electron microscopy.

If you want to use it as a **Scipion package for devel proposes**, please visit [this](https://github.com/I2PC/xmipp/wiki/Xmipp-bundle-installtion).

To install Xmipp in a certain place (e.g. in the `xmipp-bundle` directory) follow this instructions:
## Getting started
**Xmipp as a Scipion package**

```
mkdir xmipp-bundle
cd xmipp-bundle
wget https://raw.githubusercontent.com/I2PC/xmipp/devel/xmipp -O xmipp
chmod 755 xmipp
./xmipp all N=4 br=devel
ln -sf src/xmipp/xmipp xmipp # optional, but VERY RECOMMENDED, to have always the last version of the xmipp script
```
where you can replace `N=4` for `N=#processors` and `br=master` for `br=devel` if you want the development version of Xmipp. You can see the whole usage of the xmipp script with `./xmipp --help`
The recommended way to use Xmipp is via [Scipion](https://scipion-em.github.io/docs/index.html).
It can be easily installed using the [Plugin manager](https://scipion-em.github.io/docs/docs/user/plugin-manager.html).

**Xmipp as a standalone bundle (useful for developers)**

### Using Scipion libraries
Start by cloning the repository from GitHub.

If you want xmipp to pick up SCIPION libraries define SCIPION_HOME=\<path to scipion\>
In case you don't want to import settings from Scipion, set XMIPP_NOSCIPION flag to true (`export XMIPP_NOSCIPION=True`). Otherwise, define SCIPION_HOME=\<path to scipion\>

**Note**: If some program (like `nvcc`) is not visible from your terminal (`which nvcc` returns nothing), but it is visible by Scipion (`$SCIPION_HOME/scipion run which nvcc` returns the nvcc path). Then, you can use Scipion as wrapper to install Xmipp:
```
$SCIPION_HOME/scipion run ./xmipp all N=8 br=devel
```
Next, run `xmipp` script in the root folder (it might be necessary to add execute permission via `chmod +x xmipp`). This will checkout additional repositories and build Xmipp for you.

You can see the whole usage of the script with `./xmipp --help`. The most useful options are `br=branch_name` to select a specific branch to be checkout-ed, and `N=#processors` to use for the build.


## FAQ

If you want to use your specific version of Xmipp as a Scipion plugin, see following wiki [page](https://github.com/I2PC/xmipp/wiki/Migrating-branches-from-nonPluginized-Scipion-to-the-new-Scipion-Xmipp-structure#xmipp-plugin).

Recently we have changed the directory structure. See this wiki [page](https://github.com/I2PC/xmipp/wiki/Transfer-to-new-directory-structure) for more information.

This file was deleted.

33 changes: 0 additions & 33 deletions applications/programs/image_odd_even/image_odd_even_main.cpp

This file was deleted.

This file was deleted.