Quarterly report pursuant to Section 13 or 15(d)

Stockholders' Equity - Schedule of Changes in Stockholders' Equity (Details)

v3.8.0.1
Stockholders' Equity - Schedule of Changes in Stockholders' Equity (Details) - USD ($)
3 Months Ended 9 Months Ended
Feb. 06, 2018
Apr. 30, 2018
Apr. 30, 2017
Apr. 30, 2018
Apr. 30, 2017
Equity [Abstract]          
Stockholders' equity at beginning of period       $ 10,695,982 $ 28,053,104
Net loss   $ (10,060,553) $ (4,560,972) (26,697,105) (15,551,867)
Stock-based compensation       5,904,920 3,378,991
Common stock issued for services       1,443,650
Issuance of common stock through employee stock purchase plan $ 20,800,000     35,809
Equity offerings, net of costs $ 23,000,000     28,636,232
Accumulated other comprehensive income       (7,933) 7,094
Exercise of common stock warrants       9,999,983 30,950
Exercise of common stock options       226,285
Inducement warrant issuance       2,465,396
Stockholders' equity at end of period   $ 32,703,219 $ 15,962,329 $ 32,703,219 $ 15,962,329